Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Best solution to glue ACL authorized by action witch per element
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
andrzejborkowski@gmail.co m  
View profile  
 More options Sep 27 2008, 9:10 pm
From: "andrzejborkow...@gmail.com" <andrzejborkow...@gmail.com>
Date: Sat, 27 Sep 2008 18:10:38 -0700 (PDT)
Local: Sat, Sep 27 2008 9:10 pm
Subject: Best solution to glue ACL authorized by action witch per element
So i have users>roles, roles: administrator and moderator can create
events, administrator have all privileges but moderator can delete
only he own events best solutions for it ?

now i have that

$this->Auth->authorize     = 'actions';

ACL per action
ROOT
+Events
--create
--edit
--delete

Administartor CED
Moderator CE

Model Event ActAs Controlled

Controller Event create
$acoNode = array('model'=>$this->Event->name,  'foreign_key' =>$this-

>Event->id);

$aroNode = array('model'=>'User','foreign_key'=>$this->Auth-
>user('id'));        // User has full control of the action he created

// User has full control of the action he created
$role = $this->Auth->user('role');
if($role=='Administrator')
 $this->Acl->allow($aroNode, $acoNode, '*');
else
 $this->Acl->allow($aroNode, $acoNode, 'read','update');

What i must to do next for implement ACL per element witch cake auth
by action ??


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google