commit/galaxy-central: dan: Fix for re-displaying user registration form when registering as an email of an admin_user that is already declared in galaxy.ini (cntrller r dmb). NB: Automatic refresh of masthead after success did not seem to be occuring.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/4e6216506b6f/ Changeset: 4e6216506b6f User: dan Date: 2015-01-27 19:52:55+00:00 Summary: Fix for re-displaying user registration form when registering as an email of an admin_user that is already declared in galaxy.ini (cntrller r dmb). NB: Automatic refresh of masthead after success did not seem to be occuring. Affected #: 1 file diff -r df3b9b974104f827e8e50e7996a396ffdf2bc5bd -r 4e6216506b6f480742d94b0ec0b6206c0e8ebc3d templates/user/register.mako --- a/templates/user/register.mako +++ b/templates/user/register.mako @@ -17,7 +17,7 @@ ## An admin user may be creating a new user account, in which case we want to display the registration form. ## But if the current user is not an admin user, then don't display the registration form. -%if trans.user_is_admin() or not trans.user: +%if ( cntrller=='admin' and trans.user_is_admin() ) or not trans.user: ${render_registration_form()} %if trans.app.config.get( 'terms_url', None ) is not None: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org