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:
Matthew K. Fu JuYuan committed 2012-05-15 18:55:16 +08:00
1 parent b23b5e8ec5
commit 3f744dab05
14 files changed
+53 -22

No files matched your search

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