[opensuse-buildservice] OBS 2.4.6 / 2.4.5 unalbe to register using Admin when new_user_registratio: deny
Hi, I did a clean private installation of OBS 2.4.5 on OpenSUSE 12.3 this week, and later updated to OBS 2.4.6. I set "new_user_registration: deny" in api/config/options.yml, and login using default "Admin" account. When I tried to create a new user account, it always showed "User registration is disabled". I double checked "Admin" account to make sure "Admin" role is selected. I added some debug lines in "api/app/controllers/person_controller.rb": if CONFIG['new_user_registration'] == "deny" + if @http_user + logger.info "http_user=[true]" + else + logger.info "http_user=[false]" + end unless @http_user and @http_user.is_admin? render_error :message => "User registration is disabled", :errorcode => "err_register_save", :status => 400 return end @http_user is always false. Anyone knows why @http_user is false even though I have login using default "Admin" account? Thanks, Rick -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (1)
-
Rick Liu