fix for object_auth update
This commit is contained in:
1 parent
959b6aee12
commit
d480a10661
2 files changed
+3
-2
No files matched your search
@@ -67,13 +67,13 @@ class Admin::ObjectAuthsNewInterfaceController < OrbitBackendController
|
||||
end
|
||||
|
||||
def check_permission(var)
|
||||
# binding.pry
|
||||
#app = ModuleApp.first({conditions:{key: params[:module_app_key]}})
|
||||
# setup_vars
|
||||
@module_app.is_manager?(current_user) || current_user.admin?
|
||||
end
|
||||
|
||||
def setup_vars
|
||||
# binding.pry
|
||||
if request.env['HTTP_REFERER'].split('/')[4] == "object_auths"
|
||||
@app_key = params[:app_key]
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user