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 authored and Christophe Vilayphiou committed 2012-05-17 06:43:39 +08:00
1 parent 03387d3c07
commit 82d78acbad
13 files changed
+54 -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