diff --git a/app/models/user.rb b/app/models/user.rb index 5ae7a56..146661f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -355,7 +355,7 @@ class User < Principal # Is the user allowed to do the specified action on any project? # See allowed_to? for the actions and valid options. - def allowed_to_globally?(action, options) + def allowed_to_globally?(action, options={}) allowed_to?(action, nil, options.reverse_merge(:global => true)) end