Patch #6498 ยป user.rb.patch
app/models/user.rb | ||
---|---|---|
355 | 355 | |
356 | 356 |
# Is the user allowed to do the specified action on any project? |
357 | 357 |
# See allowed_to? for the actions and valid options. |
358 |
def allowed_to_globally?(action, options) |
|
358 |
def allowed_to_globally?(action, options={})
|
|
359 | 359 |
allowed_to?(action, nil, options.reverse_merge(:global => true)) |
360 | 360 |
end |
361 | 361 |
|