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
@@ -19,6 +19,10 @@ module OrbitCoreLib
|
||||
|
||||
end
|
||||
|
||||
def cur_user_is_sub_manager_of(title)
|
||||
authed_users(title).include?(User.current)
|
||||
end
|
||||
|
||||
def app_auth
|
||||
ModuleApp.first(conditions: {:title => self.class::APP_NAME} )
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user