First version of app and object auth for web_resource module. Basic fund is ok. backend need to be secued
This commit is contained in:
1 parent
03387d3c07
commit
82d78acbad
13 files changed
+54
-22
No files matched your search
@@ -11,9 +11,7 @@ class ObjectAuth < PrototypeAuth
|
||||
end
|
||||
|
||||
def check_user_has_app_auth
|
||||
debugger
|
||||
a=1
|
||||
sub_managing_users = auth_obj.app_auth.sub_managing_users
|
||||
sub_managing_users = auth_obj.app_auth.sub_managing_users rescue []
|
||||
app_auth = auth_obj.app_auth
|
||||
self.auth_users.each do |auth_user|
|
||||
if !sub_managing_users.include? auth_user && !auth_user.admin?
|
||||
|
||||
Reference in new issue
Block a user