Object Auth. Now object can be included with "include OrbitCoreLib::ObjectAuthable" to use kernel method,such as
1.Object.authed_for_user(user,title_of_object_auth). title_of_object_auth is optional 2.object.authed_users(user,title_of_object_auth) . title_of_object_auth is optional if title_of_object_auth is not given,then it will return calculation across all possiblity.
This commit is contained in:
1 parent
3ed9b81df9
commit
e20739e32b
7 files changed
+96
-52
No files matched your search
+6
-1
@@ -12,7 +12,12 @@ PrototypeR4::Application.routes.draw do
|
||||
namespace :admin do
|
||||
resources :assets
|
||||
resources :app_auths
|
||||
resources :object_auths
|
||||
resources :object_auths do
|
||||
member do
|
||||
match ':id/create_role',:action => 'create_role',:iia => "post",:as => :create_role
|
||||
match 'remove/:type/:target_id' ,:action=> 'remove_role',:via => "delete",:as =>:remove
|
||||
end
|
||||
end
|
||||
|
||||
resources :ad_banners
|
||||
resources :designs do
|
||||
|
||||
Reference in new issue
Block a user