Change authorization to accept other than category

This commit is contained in:
chris committed 2013-07-25 17:36:55 +08:00
1 parent 0c208d0020
commit da1d70efcb
7 files changed
+60 -52

No files matched your search

+1 -1
View File
@@ -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