Fix behavior of Organization comments and posts urls (#6383)
* Fix allowed_user method of notifications controller * Change to keep the current order of checks
This commit is contained in:
parent
3c8422c8d5
commit
7e397f4bd5
1 changed files with 1 additions and 1 deletions
|
|
@ -78,6 +78,6 @@ class NotificationsController < ApplicationController
|
|||
end
|
||||
|
||||
def allowed_user?
|
||||
@user.organizations.exists?(id: params[:org_id]) || @user.admin?
|
||||
@user.org_member?(params[:org_id]) || @user.admin?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue