Archived
Change authorization to accept other than category
This commit is contained in:
1 parent
0c208d0020
commit
da1d70efcb
7 files changed
+60
-52
No files matched your search
@@ -410,7 +410,7 @@ class ApplicationController < ActionController::Base
|
||||
if check_permission(:manager)
|
||||
object.create_user_id != current_user.id
|
||||
else
|
||||
!object.category.authed_users('fact_check').include?(current_user) rescue false
|
||||
!object.category.authed_users("approval_#{@module_app.key}").include?(current_user) rescue false
|
||||
end
|
||||
else
|
||||
false
|
||||
|
||||
Reference in new issue
Block a user