Re: Acl alternative
Can you tell us how you implemented the connection to cassandra? What are your thoughts about cassandra vs mysql? On Sunday, June 3, 2012 at 7:39:49 PM UTC-4, Juan Ezquerro LLanes wrote: > > Hi, > > I'm using cakephp 2.0 and cassandra as database, so i can't work with > default acl implementation, any suggestions, options, ...? > > Thanks > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at https://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
New plugin ACL cakephp3
Hello, I developed a plugin for acl cakephp3. Am new to the cakephp, it is three weeks I started to use it. As I saw that the community still needs a plugin acl decided to develop. The tutorial is in Portuguese, if anyone can translate it I thank you. Reviews and collaborations are welcome! Thank you! Link github: https://github.com/abreu1234/acl -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Iimplement ACL plugin in cakephp 3
I have installed the acl plugin using composer . I tried using it as given in the cakephp 2.x tutorial coz dere's no tutorial given for 3.0 . it's not working. Need immediate help in implementing the same. Thanks in advance. On Monday, May 4, 2015 at 10:41:59 PM UTC+5:30, John Andersen wrote: Please provide more information on what you have tried and what are the issues you are facing! Do you understand about creating a plugin in CakePHP 3? Have you an understanding of ACL? How far are you with the plugin and where are you stuck? Enjoy, John On Monday, 4 May 2015 10:58:46 UTC+3, Sunil Kumar wrote: I need to implement ACL plugin in cakephp 3 . the documentation given is not helping ... need your help in implementing the same. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Iimplement ACL plugin in cakephp 3
I need to implement ACL plugin in cakephp 3 . the documentation given is not helping ... need your help in implementing the same. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Iimplement ACL plugin in cakephp 3
Please provide more information on what you have tried and what are the issues you are facing! Do you understand about creating a plugin in CakePHP 3? Have you an understanding of ACL? How far are you with the plugin and where are you stuck? Enjoy, John On Monday, 4 May 2015 10:58:46 UTC+3, Sunil Kumar wrote: I need to implement ACL plugin in cakephp 3 . the documentation given is not helping ... need your help in implementing the same. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Iimplement ACL plugin in cakephp 3
Keep the author. It would be ideal to make a video tutorial! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Dispatch ACL events in Cake 2.6
Hi folks, How can I attach or dispatch events only for ACOs/AROs? Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
ACL View
Hi everyone! My company released a (little) small plugin that helps management of ACL Permissions on Cake. Feel free to use and send suggetions or bug reports! https://github.com/GWD-WEB/acl-view Thanks Willen Goulart -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: ACL View
A few points: - https://github.com/GWD-WEB/acl-view/blob/master/Controller/PermissoesController.php#L2 is an invalid use statement - the plugin is missing test cases (which would have revealed point 1) - you should add composer support, as this is the de facto standard at this point to include plugins keep it up Mark Am Freitag, 16. Januar 2015 20:45:30 UTC+1 schrieb will: Hi everyone! My company released a (little) small plugin that helps management of ACL Permissions on Cake. Feel free to use and send suggetions or bug reports! https://github.com/GWD-WEB/acl-view Thanks Willen Goulart -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Acl using PhpAcl problem
Hello Folks :) Please help me, I have a problem with CakePHP ACL using class PhpAcl. This is my Auth component setup in AppController ?php class AppController extends Controller { public $components = array( 'Acl', 'Auth' = array( 'authorize' = array('Actions' = array('actionPath' = 'controllers/')), 'unauthorizedRedirect' = array( 'plugin' = null, 'controller' = 'dashboard', 'action' = 'index' ), 'autoRedirect' = false ), 'Session' ); this is my setup in acl.php ?php $config['map'] = array( 'User' = 'User/email', 'Role' = 'User/role', // -- field 'role' in my users table ); /** * role configuration */ $config['roles'] = array( 'Role/admin' = null, 'Role/entry' = null ); /** * rule configuration */ $config['rules'] = array( 'allow' = array( '*' = 'Role/admin', 'controllers/crm_customers/*' = 'Role/entry', 'controllers/dashboard/index' = 'Role/entry' ), 'deny' = array() ); The problem is, Role/entry can never access crm_customers controller and its methods , BUT Role/admin no problem. Role/admin can access all controllers and its methods. I also try to set only spesific method name on a controller: $config['rules'] = array( 'allow' = array( '*' = 'Role/admin', 'controllers/crm_customers/index' = 'Role/entry', 'controllers/crm_customers/add' = 'Role/entry', 'controllers/crm_customers/edit' = 'Role/entry', 'controllers/dashboard/index' = 'Role/entry' ), 'deny' = array() ); but still can never access what have been defined :( Please help me, Thank You :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
[Question] Acl query error
Hello guys, I'm totally newbie in CakePHP. Now I'm working on acl. I've set my access to administrator which can do anything. But when i call method/action add or anything that i don't allow in beforeFilter() method there is an error like this *Error: *SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Aro0.foreignKey' in 'where clause' *SQL Query: *SELECT `Aro`.`id`, `Aro`.`parent_id`, `Aro`.`model`, `Aro`.`foreign_key`, `Aro`.`alias` FROM `dotcore`.`aros` AS `Aro` INNER JOIN `dotcore`.`aros` AS `Aro0` ON (`Aro`.`lft` = `Aro0`.`lft` AND `Aro`.`rght` = `Aro0`.`rght`) WHERE `Aro0`.`model` = 'Group' AND `Aro0`.`foreignKey` = '1' ORDER BY `Aro`.`lft` DESC Please help me -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Acl check not logged in user accessable url
Please rephrase your question or show us an example of what you can get and describe what you cannot get :) Enjoy, John On Monday, 29 September 2014 06:54:57 UTC+3, kani wrote: i can get current controller allowed actions but how get all allowed actions from any controller. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Acl check not logged in user accessable url
i can get current controller allowed actions but how get all allowed actions from any controller. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
CakePHP 2.5 and ACL Groups Permissions not working
HI , i have had problems with Cake's ACL. I followed all the tutorials, had AROS, ACOS and AROS_ACOS table generated. I installed the Alexo's ACL plugin and made it work under version 2.5.2 (finally). I do have problem with the group permissions. Even though I set only one group to be able to access specific action, it still allows another group to view the action too. Basically, the ACL does not work for me at all. What am I missing? Bellow is the code from AppController: public $components = array( 'Acl', 'Auth' = array( 'loginAction' = array( 'controller' = 'users', 'action' = 'login', 'admin' = false ), 'loginRedirect' = array( 'controller' = 'users', 'action' = 'profile', 'admin' = false ), 'logoutRedirect' = array( 'controller' = 'users', 'action' = 'login', 'admin' = false ), 'authError' = 'Please login to continue', 'authenticate' = array( 'Form' = array( 'fields' = array( 'username' = 'username', 'password' = 'pwd' ), 'passwordHasher' = array( 'className' = 'Simple', 'hashType' = 'sha256' ) ) ), 'authorize' = array( 'Actions' = array( 'actionPath' = 'controllers' ) ), /* 'authorize' = array( 'Actions', 'Controller' ), */ ), 'Session' ); public function beforeFilter() { // this is from bootstrap to allow development if (APP_ACL_ENABLED == 0) { // allow everything $this-Auth-allow(); } else { // nothing allowed $this-Auth-allow(array()); }; } here... I have been trying to set this for several days, with no success Any help is truly appreciated!! Thank you, Martin -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.x - Acl Plugin ?
change is ok :) Actually mucking about with 3.x while things are changing has been an excellent tour around the internals for me so far :) /thomas On 05 Jul 2014, at 23:11, José Lorenzo jose@gmail.com wrote: It is not stable as in stuff will probably change, but it can be used On Saturday, July 5, 2014 9:52:27 PM UTC+2, Thomas von Hassel wrote: I see it's there and updated to the new directory structure, but is it in a state to be used ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
3.x - Acl Plugin ?
I see it's there and updated to the new directory structure, but is it in a state to be used ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.x - Acl Plugin ?
It is not stable as in stuff will probably change, but it can be used On Saturday, July 5, 2014 9:52:27 PM UTC+2, Thomas von Hassel wrote: I see it’s there and updated to the new directory structure, but is it in a state to be used ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
acl examples dont work
Hi, I am having problems finding a working acl example. This example points me to the below links which doesnt work. maybe I can fix these up if someone knows how. So add some groups and users using the baked forms by browsing to http://example.com/groups/add and http://example.com/users/add. I made the following groups: http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html This tutorial is more basic but again doesnt work when I create a user because when you create a user on register the code gets an error on User.error as this isnt defined as well as talking about a post controller with no poss model. It is incomplete as well. This tut seems old as well . http://code.tutsplus.com/tutorials/how-to-use-cakephps-access-control-lists--net-13457 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Need help on custom Authorization with ACL
CakePHP custom ACL Authorization using acos, aros aros_acos Acl tables with extension api_ I am developing an restful API using CakePHP, I am trying to implement a custom authorization which authorize user using ACL, code looks something like ?php App::uses('BaseAuthorize', 'Controller/Component/Auth'); class ApiAuthorize extends BaseAuthorize { public function authorize($user, CakeRequest $request) { $allowed = false; $Acl = $this-_Collection-load('Acl'); list($plugin, $userModel) = pluginSplit($this-settings['userModel']); $action = $this-action($request); $cacheName = 'permissions_' . strval($user['id']); if (($permissions = Cache::read($cacheName, 'permissions')) === false) { $permissions = array(); Cache::write($cacheName, $permissions, 'permissions'); } if (!isset($permissions[$action])) { $User = ClassRegistry::init($this-settings['userModel']); $User-id = $user['id']; $allowed = $Acl-check($User, $action); $permissions[$action] = $allowed; Cache::write($cacheName, $permissions, 'permissions'); $hit = false; } else { $allowed = $permissions[$action]; $hit = true; } return $allowed; } } I am using same database for website(developed using croogo) and API so my database already has `acos`, `aros` `aros_acos` tables of website so for API I am created ACL tables with api_ extension like `api_acos`, `api_aros` `api_aros_api_acos` New schema of my ACL tables are CREATE TABLE IF NOT EXISTS `api_acos` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) DEFAULT NULL, `model` varchar(255) DEFAULT '', `foreign_key` int(10) unsigned DEFAULT NULL, `alias` varchar(255) DEFAULT '', `lft` int(10) DEFAULT NULL, `rght` int(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `api_acos_api_aros` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `api_aro_id` int(10) unsigned NOT NULL, `api_aco_id` int(10) unsigned NOT NULL, `_create` char(2) NOT NULL DEFAULT '0', `_read` char(2) NOT NULL DEFAULT '0', `_update` char(2) NOT NULL DEFAULT '0', `_delete` char(2) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `api_aros` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) DEFAULT NULL, `model` varchar(255) DEFAULT '', `foreign_key` int(10) unsigned DEFAULT NULL, `alias` varchar(255) DEFAULT '', `lft` int(10) DEFAULT NULL, `rght` int(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; I am using custom ACL class from here https://github.com/FriendsOfCake/Authorize/blob/master/Controller/Component/Acl/HabtmDbAcl.php My question is where and how can I use my new database tables (`api_acos`, `api_aros` `api_aros_api_acos`) for ACL lookup? Please point me to code from where I can take reference for custom ACL Authorization implementation. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 2 acl not denying any actions
I'm having the same problem. Did you ever figure this out? :( On Monday, March 4, 2013 12:35:48 PM UTC-7, incognito wrote: I followed the tutorial and didn't get any errors but acl is allowing all actions for all users.I checked with aclmanager all permissions are being displayed correctly.I have added parent::beforeFilter(); in all controllers.Am I missing something? Can anybody please help me out with this? This is my initDB function public function initDB() { $group = $this-User-Group; $group-id = 1; $this-Acl-allow($group, 'controllers'); $group-id = 2; $this-Acl-deny($group, 'controllers'); $this-Acl-allow($group, 'controllers/Employees'); $group-id = 3; $this-Acl-deny($group, 'controllers');//we add an exit to avoid an ugly missing views error message echo all done; } This is my beforefilter function in appcontroller function beforeFilter(){ $this-Auth-authorize = array( 'Controller', 'Actions' = array('actionPath' = 'controllers') ); $this-Auth-authenticate = array('Form' = array('fields' = array('username' ='username', 'password' = 'password'))); $this-Auth-loginAction = array('controller' = 'users', 'action' = 'login'); $this-Auth-logoutRedirect = array('controller' = 'users', 'action' = 'login'); $this-Auth-loginRedirect = array('controller' = 'employees', 'action' = 'employee_list'); } -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Problems with ACL ARO ACO
If somebody is so kind to share some kind of tutorial that is known to work properly, I will be really happy ;) On Monday, 5 May 2014 13:07:27 UTC+1, Jumy Elerossë wrote: Hello everyone. I have been struggling with Cake PHP, specially with the part of the ACL, ARO and ACOS. I have been Googling and reading a lot, but the official example seems to be incomplete (looks like incomplete to me), and I can only find out of date examples. I'm using cakephp 2.4.7. This is my problem right now: I have a series of aros and acos created. What I can't do is to assign permissions to the aros in order to access to the acos, or in other words, that a aro from the model Group (I have User and Group) could access or not to controllers and actions of the controllers. I don't know what is the problem, and all the tutorials are out of date... -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Problems with ACL ARO ACO
I am wressling myself with Acl and I've found helpful to use the AclExtras plugin. There's a convenient (although slow) page that uses checkboxes to grant permissions. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Problems with ACL ARO ACO
Thank you very much, mate. I will give it a chance. On Tuesday, 6 May 2014 14:41:53 UTC+1, Dario Savella wrote: I am wressling myself with Acl and I've found helpful to use the AclExtras plugin. There's a convenient (although slow) page that uses checkboxes to grant permissions. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Problems with ACL ARO ACO
Hello everyone. I have been struggling with Cake PHP, specially with the part of the ACL, ARO and ACOS. I have been Googling and reading a lot, but the official example seems to be incomplete (looks like incomplete to me), and I can only find out of date examples. I'm using cakephp 2.4.7. This is my problem right now: I have a series of aros and acos created. What I can't do is to assign permissions to the aros in order to access to the acos, or in other words, that a aro from the model Group (I have User and Group) could access or not to controllers and actions of the controllers. I don't know what is the problem, and all the tutorials are out of date... -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
CakePHP 2.4.7 ACL List al permissions in a view
Hello, I'm using CakePHP and the part I like the most of it is the ACL Component which is very useful. I'm building an group-based permissions app where I can see which permissions a group has. I want to store all my permissions of a group in a table in a view, without using a plugin/package. What is the best way to do that, or are there any examples? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.0 - Acl
Sounds like a plan i can get behind :) /thomas On 02 Mar 2014, at 03:39, mark_story mark.st...@gmail.com wrote: We'll probably be moving the existing ACL code into a standalone plugin, possibly merging with the AclExtras repo I maintain so there are fewer things for people to install. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: 3.0 - Acl
You are free to continue it as an Acl Plugin :) Am Samstag, 1. März 2014 08:18:24 UTC+1 schrieb Thomas von Hassel: To clarify, i have an app that manages permissions for a great many Entities with DbAcl and i never had any problems with it … /thomas On 28 Feb 2014, at 13:30, José Lorenzo jose...@gmail.com javascript: wrote: It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases. On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote: Hey Am i right to assume that Acl is not done in 3.0 yet ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com javascript:. To post to this group, send email to cake...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: 3.0 - Acl
We'll probably be moving the existing ACL code into a standalone plugin, possibly merging with the AclExtras repo I maintain so there are fewer things for people to install. Beyond that other ACL libraries like Zend_ACL, or Sentry2 are great alternatives. -Mark On Friday, 28 February 2014 21:21:39 UTC-5, Dr. Tarique Sani wrote: Great! Is a replacement proposed? Something like Sentry 2 package? Tarique On Friday, February 28, 2014, José Lorenzo jose...@gmail.comjavascript: wrote: It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases. On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote: Hey Am i right to assume that Acl is not done in 3.0 yet ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- = The Conference Schedule Creator : http://shdlr.com PHP for E-Biz : http://sanisoft.com = -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: 3.0 - Acl
It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases. On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote: Hey Am i right to assume that Acl is not done in 3.0 yet ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: 3.0 - Acl
Great! Is a replacement proposed? Something like Sentry 2 package? Tarique On Friday, February 28, 2014, José Lorenzo jose@gmail.com wrote: It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases. On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote: Hey Am i right to assume that Acl is not done in 3.0 yet ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.comjavascript:_e(%7B%7D,'cvml','cake-php%2bunsubscr...@googlegroups.com'); . To post to this group, send email to cake-php@googlegroups.comjavascript:_e(%7B%7D,'cvml','cake-php@googlegroups.com'); . Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- = The Conference Schedule Creator : http://shdlr.com PHP for E-Biz : http://sanisoft.com = -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: 3.0 - Acl
Oh, that's a shame. Works fine for me, once you get a hang of it. /Thomas Sent from my iPad On 28 Feb 2014, at 13:30, José Lorenzo jose@gmail.com wrote: It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases. On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote: Hey Am i right to assume that Acl is not done in 3.0 yet ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: 3.0 - Acl
To clarify, i have an app that manages permissions for a great many Entities with DbAcl and i never had any problems with it ... /thomas On 28 Feb 2014, at 13:30, José Lorenzo jose@gmail.com wrote: It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases. On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote: Hey Am i right to assume that Acl is not done in 3.0 yet ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
3.0 - Acl
Hey Am i right to assume that Acl is not done in 3.0 yet ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Advice on Acl, Auth etc with multiple types of user
Thanks for the replies. Maybe I've been trying to make it too complicated for my needs... I'll rethink, and euromark, I'll check out that link. Thanks again! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Advice on Acl, Auth etc with multiple types of user
I'm building a system which has 4 types of user: Admin, Buyer, Supplier and Technician. They each have access to different areas of the site, and have different restrictions placed on what they can see. From what I've read in the book, the Acl component seems to be the best way to manage this, but having read all the sections on it several times, I'm still a bit confused, so before I launch into it, I'd like to make sure I'm heading in the right direction! Mainly, I'm not sure how to structure the database. From the CakePHP book, it seems like I should have 4 models, one for each user type - is that correct? Do I then need a User record for each person, which links to their corresponding record in the appropriate model? Otherwise, how does Authentication work - it needs you to be working with a 'User', right? So I'm thinking I need to build the following structure: Users - with username and password for everyone who can log in Buyers - individual buyer record, including user_id to link back to User record Suppliers - individual supplier record, including user_id Admins - as above Technicians - as above And when a user is added, do I create their User and Buyer/Supplier/Admin/Technician record and then add them to the Acl? It seems quite complex for what I'm doing, as I will have the same access levels for all Buyers, the same for all Suppliers etc., but the book seems to be saying that each person will then have a User record, a Buyer/Supplier etc record, and an Aro record. Am I doing the right thing here? Thanks! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Advice on Acl, Auth etc with multiple types of user
Well, it's correct, but not unique solution for you problem. You can create Plugins for Auth specified: 1. Plugin/Admin 2. Plugin/Buyer 3. Plugin/Supplier 4. Plugin/Technician For each plugin exists one Controller, example AdminAppController, use Auth and configure useModel and sessionKey for you model Admin and so. In my opinion this is the best solution when each section is totally different. On Thu, Jan 9, 2014 at 1:59 PM, WhyNotSmile sharongilmor...@gmail.comwrote: I'm building a system which has 4 types of user: Admin, Buyer, Supplier and Technician. They each have access to different areas of the site, and have different restrictions placed on what they can see. From what I've read in the book, the Acl component seems to be the best way to manage this, but having read all the sections on it several times, I'm still a bit confused, so before I launch into it, I'd like to make sure I'm heading in the right direction! Mainly, I'm not sure how to structure the database. From the CakePHP book, it seems like I should have 4 models, one for each user type - is that correct? Do I then need a User record for each person, which links to their corresponding record in the appropriate model? Otherwise, how does Authentication work - it needs you to be working with a 'User', right? So I'm thinking I need to build the following structure: Users - with username and password for everyone who can log in Buyers - individual buyer record, including user_id to link back to User record Suppliers - individual supplier record, including user_id Admins - as above Technicians - as above And when a user is added, do I create their User and Buyer/Supplier/Admin/Technician record and then add them to the Acl? It seems quite complex for what I'm doing, as I will have the same access levels for all Buyers, the same for all Suppliers etc., but the book seems to be saying that each person will then have a User record, a Buyer/Supplier etc record, and an Aro record. Am I doing the right thing here? Thanks! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Atenciosamente, Rafael F. Queiroz -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Advice on Acl, Auth etc with multiple types of user
You should use users and roles (user belongs to role) to manage this. and try to stay away from ACL if possible (which in this case sounds like the case) on top of different controllers/plugins to separate the access for each role, you can than easily switch access based on such a role - and also pull in related tables that extend the specific role See www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2/ on how to make a simple role based access. Am Donnerstag, 9. Januar 2014 18:38:35 UTC+1 schrieb Rafael Queiroz: Well, it's correct, but not unique solution for you problem. You can create Plugins for Auth specified: 1. Plugin/Admin 2. Plugin/Buyer 3. Plugin/Supplier 4. Plugin/Technician For each plugin exists one Controller, example AdminAppController, use Auth and configure useModel and sessionKey for you model Admin and so. In my opinion this is the best solution when each section is totally different. On Thu, Jan 9, 2014 at 1:59 PM, WhyNotSmile sharong...@gmail.comjavascript: wrote: I'm building a system which has 4 types of user: Admin, Buyer, Supplier and Technician. They each have access to different areas of the site, and have different restrictions placed on what they can see. From what I've read in the book, the Acl component seems to be the best way to manage this, but having read all the sections on it several times, I'm still a bit confused, so before I launch into it, I'd like to make sure I'm heading in the right direction! Mainly, I'm not sure how to structure the database. From the CakePHP book, it seems like I should have 4 models, one for each user type - is that correct? Do I then need a User record for each person, which links to their corresponding record in the appropriate model? Otherwise, how does Authentication work - it needs you to be working with a 'User', right? So I'm thinking I need to build the following structure: Users - with username and password for everyone who can log in Buyers - individual buyer record, including user_id to link back to User record Suppliers - individual supplier record, including user_id Admins - as above Technicians - as above And when a user is added, do I create their User and Buyer/Supplier/Admin/Technician record and then add them to the Acl? It seems quite complex for what I'm doing, as I will have the same access levels for all Buyers, the same for all Suppliers etc., but the book seems to be saying that each person will then have a User record, a Buyer/Supplier etc record, and an Aro record. Am I doing the right thing here? Thanks! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com javascript:. To post to this group, send email to cake...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Atenciosamente, Rafael F. Queiroz -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: ACL - Error messages after adding new user
Ok, I've found my mistake. I created the Aros, Acos tables before using the cake bake command. So when I used the AclBehavior, it was trying to use the node() function from the Aro's class autogenerated by Cake bake command, not the one from the AclBehavior. I needed a good night sleep to finally being able to see this :/ Le dimanche 24 novembre 2013 16:20:45 UTC+1, thebeardman a écrit : Hi, I'm using CakePHP 2.4.2 and I followed the tuto to use the core Acl behavior. I am able to create an usergroup and its Aros correctly. However when I'm trying to add a new user, the user is correctly inserted in the User table but the Aro's not. I'm having the same issue as this one : https://groups.google.com/forum/#!msg/cake-php/J964MBrQJ9A/_CXWk0BsSVkJbut because it is a bit old, I thought I should open a new one. Here my User Model : http://pastebin.com/pGc1U7S8http://www.google.com/url?q=http%3A%2F%2Fpastebin.com%2FpGc1U7S8sa=Dsntz=1usg=AFQjCNEGS0UBox9mJSWs2u4OqVO9yAu7SQ Here the errors I have when trying to add a new user: http://pastebin.com/UUDnxwschttp://www.google.com/url?q=http%3A%2F%2Fpastebin.com%2FUUDnxwscsa=Dsntz=1usg=AFQjCNH-zoM-W_fupJqSG4KHThQKbY1Gbw As far as I understand the Acl behavior, it's like the AclBehavior object never call the Aro-node() function. If I return null directly in the User model parentNode() function, it is working but the I don't have the linked with the user's usergroup. How can I make it work? Thank for any advices. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
ACL - Error messages after adding new user
Hi, I'm using CakePHP 2.4.2 and I followed the tuto to use the core Acl behavior. I am able to create an usergroup and its Aros correctly. However when I'm trying to add a new user, the user is correctly inserted in the User table but the Aro's not. I'm having the same issue as this one : https://groups.google.com/forum/#!msg/cake-php/J964MBrQJ9A/_CXWk0BsSVkJ but because it is a bit old, I thought I should open a new one. Here my User Model : http://pastebin.com/pGc1U7S8 Here the errors I have when trying to add a new user: http://pastebin.com/UUDnxwsc As far as I understand the Acl behavior, it's like the AclBehavior object never call the Aro-node() function. If I return null directly in the User model parentNode() function, it is working but the I don't have the linked with the user's usergroup. How can I make it work? Thank for any advices. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cakephp user privileges ACL
It means that there are no entries in the aros table for that Post. If you have things configured correctly, that should be created at the time the Past is created. If the Post already exists before adding ACL then you must sync the aros table to the posts table. On Wed, Aug 14, 2013 at 2:52 AM, Shreenidhi Damani sndam...@gmail.comwrote: I have an ongoing project in cakephp . I tried ACL using cakephp cookbook using the Posts example,but on add,edit delete, the following error occurred- AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Post [Aro0.foreign_key] = 1 ) Please reply as soon as possible . Thanks. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Cakephp user privileges ACL
I have an ongoing project in cakephp . I tried ACL using cakephp cookbook using the Posts example,but on add,edit delete, the following error occurred- AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Post [Aro0.foreign_key] = 1 ) Please reply as soon as possible . Thanks. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: ACL-allow based on aco id
I have tried to pass in arrays like (Aco=array(id=4)) but it doesn't seem to work. Any suggestions? On Thu, Aug 1, 2013 at 3:13 AM, Michael Gaiser mjgai...@gmail.com wrote: So I have seen a lot of examples that use the aco alias when calling allow() but they usually have the parent aco's alias included. For example 'controllers/Users'. Is it possible to call allow() and just use the Aco.id and the Aro.id? Thanks ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
ACL-allow based on aco id
So I have seen a lot of examples that use the aco alias when calling allow() but they usually have the parent aco's alias included. For example 'controllers/Users'. Is it possible to call allow() and just use the Aco.id and the Aro.id? Thanks ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
ACL - Group question?
So, I am trying to setup a system in Cakephp 2.x where a user can be a member of multiple groups and gain access based on the what all those groups would provide. So here is my question. Right now, the ACL behavior along with a parentNode() function in my group model automatically creates an ARO entry when a new group is created. This seems to duplicate information as the ARO and the group seem to basically be the same thing, but in two different tables. Would I be better off just ignoring the group model and create a ARO model to handle the manipulation of the permissions? On another note, is there anyway to make the ACL Behavior also save the alias of the record? Thanks ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cache Implement on ACL
On Thursday, 23 May 2013 22:10:32 UTC+7, Yasir Arafat wrote: Hello, I have used ACL in an application. It was fine when there were very few functionality but day by day as the functionalities are increased the load time is also increasing. I make sure about - *D**atabase is normalized properly* - *I**ndex field properly* - *T**able engine is innoDB*. I get little improvement but that's not sufficient. So i think if i can implement cache on ACL that will help me So i need help on implementing ACL or if you have any other suggesions. Maybe https://github.com/croogo/croogo/blob/1.5/Plugin/Acl/Controller/Component/Auth/AclCachedAuthorize.php could be used/modified as a starting point. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Acl giving permissions on afterSave function of a Model?
Hi there everyone. I'm starting to give my first steps with Acl and it's going well until now. Ok, now, I want to give permissions to some Acos after creating an Object that is an Aro. Example: Give permission to a User to update, delete a Post that he has just created. I wanted to use the afterSave callback of the Post Model to do that but... well, the Acl Behavior doesn't seem capable of such a thing, only the Acl Component but well, I am in the Model not the Controller. How to achieve that? OR How would be the correct way to do that? Regards -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Acl giving permissions on afterSave function of a Model?
Hi again. I don't if this is the correct or best way to achieve it but, ok, here I go: *Following the Blog tutorial:* *public function afterSave($create) { * * * *$acoNode = array( 'Post' = array('id' = $this-data['Post']['id'])* *);* * * *$aroNode = array(* *'User' = array('id' = $this-data['Post']['user_id'])* *);* * * * * *$Permission = ClassRegistry::init('Permission');* *$Permission-allow($aroNode, $acoNode);* *}* *What do you think?* On Wednesday, May 15, 2013 11:38:39 AM UTC-5, Ciul wrote: Hi there everyone. I'm starting to give my first steps with Acl and it's going well until now. Ok, now, I want to give permissions to some Acos after creating an Object that is an Aro. Example: Give permission to a User to update, delete a Post that he has just created. I wanted to use the afterSave callback of the Post Model to do that but... well, the Acl Behavior doesn't seem capable of such a thing, only the Acl Component but well, I am in the Model not the Controller. How to achieve that? OR How would be the correct way to do that? Regards -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to delete an ACL node
try cake acl help You can delete either and aro or an aco using cake acl delete aco node or cake acl delete aro node I am using CakePHP 1.3 so I don't know if this has changed in the 2.x series -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
How to delete an ACL node
Hello, how do I delete an ACL node? I searched via google and here in this group, but I haven't found anything usefull. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: A more advanced use of ACL?
Small correction, I want to overload the authorize function of the auth component. On Sunday, April 21, 2013, Michael Gaiser wrote: The Alaxos ACL Plugin is pretty cool and I will want my code to work very similar to that when I am done, but I dont think it will do exactly what I want. As for just hard coding it myself, I feel that while that is still an option, every time I and up replacing a major cake component, its because I do not really understand how the original worked in the first place so I would prefer to try and make use of the already existing code as much as possible. that being said, is there a way to change or overload the Auth components check function without having to edit the library file? ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: A more advanced use of ACL?
Although I stopped short of this in my recent projects, so I haven't tried it, but it seems you could create a component of your own and just inherit the AuthComponent and overwrite that way. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: A more advanced use of ACL?
I was looking around and found this page http://joykapoor.wordpress.com/2013/01/09/authcomponent-variables-in-cakephp/ It seems that you can have your own isAuthorized() function in your user model and it will call it once it determines you are a valid user. I am going to give that a shot and see if it will do what I need. Thanks. ~Michael On Sun, Apr 21, 2013 at 8:04 PM, godjen99 godje...@yahoo.com wrote: Although I stopped short of this in my recent projects, so I haven't tried it, but it seems you could create a component of your own and just inherit the AuthComponent and overwrite that way. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: A more advanced use of ACL?
The Alaxos ACL Plugin is pretty cool and I will want my code to work very similar to that when I am done, but I dont think it will do exactly what I want. As for just hard coding it myself, I feel that while that is still an option, every time I and up replacing a major cake component, its because I do not really understand how the original worked in the first place so I would prefer to try and make use of the already existing code as much as possible. that being said, is there a way to change or overload the Auth components check function without having to edit the library file? ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: A more advanced use of ACL?
Although I know of no plugin for this, should be possible. I've been tinkering with the ACL and Auth a bit now and it's pretty powerful and I like it a lot - took me a while to get used to it though... Anyway, you could write your own check function, which is where the ARO and ACO are checked against the DB, allowing/denying the user access. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: A more advanced use of ACL?
Did you already have a look at the Alaxos ACL Plugin? http://www.alaxos.net/blaxos/pages/view/plugin_acl_2.0 Luc On Sunday, April 14, 2013 6:43:54 AM UTC+2, Michael wrote: I have been thinking about how I want to setup my sites permissions. Here is my concept. I have a site that will assign a basic ARO ('Standard') which has access to the standard areas. In addition to that, moderators can create custom ARO's for the members they are responsible for. When accessing a page, I want to test against all the different group ARO's the user belongs to and if any of they allow the page, allow the user to view it. From what I can figure out, I will need some way to add a User ARO under each group ARO the user is supposed to belong to. This can result in multiple User ARO's linked to the same User id. Does anyone know of a setup like this? Possibly a plugin? I think of a few ways to go about it, but they tend to avoid using ACL Auth. Has anyone had to deal with a setup like this? Thanks. ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
A more advanced use of ACL?
You could query the AroAco model to get a list of the ACOs that specific ARO has access to and thus is able to grant access to. You said you have a few ways of implementing this that don't need to implement ACL.. Why not go that route? No need to over complicat etchings IMO. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
A more advanced use of ACL?
I have been thinking about how I want to setup my sites permissions. Here is my concept. I have a site that will assign a basic ARO ('Standard') which has access to the standard areas. In addition to that, moderators can create custom ARO's for the members they are responsible for. When accessing a page, I want to test against all the different group ARO's the user belongs to and if any of they allow the page, allow the user to view it. From what I can figure out, I will need some way to add a User ARO under each group ARO the user is supposed to belong to. This can result in multiple User ARO's linked to the same User id. Does anyone know of a setup like this? Possibly a plugin? I think of a few ways to go about it, but they tend to avoid using ACL Auth. Has anyone had to deal with a setup like this? Thanks. ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Cake ACL
I have installed the AclExtras Plugin and within the plugin have the following: public $dataSource = 'default'; my default datasource is: public $default = array( 'datasource' = 'Database/Sqlserver', 'persistent' = false, 'host' = 'IAINROSE\SQLEXPRESS', 'login' = 'administrator', 'password' = 'd3veloper', 'database' = 'clearview', 'prefix' = '', ); The rest of the app can connect and functions as normal, but when I try and run the plugin commands e.g. cake -app c:\wamp\www\app AclExtras.AclExtras aco_sync I get the following error: database connect Sqlserver is missing, or could not be created?? Any ideas why only the plugin can not connect?? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
ACL : Group vs. User
I have implemented ACL in my app and I'm regulating access using Groups, however, I would like for some users within the same group to have slightly different permissions. Has anyone been able to accomplish this? Is this even possible? It seems as though I can change permissions for both the Group as well as User, but when it comes to granting access it's one or the other and there are far too many user records to set individual permissions per user. Any help is greatly appreciated. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: ACL : Group vs. User
Have you checked out http://www.alaxos.net/blaxos/pages/view/plugin_acl_2.0 ? On Sunday, February 24, 2013 11:02:37 AM UTC-5, CrotchFrog wrote: I have implemented ACL in my app and I'm regulating access using Groups, however, I would like for some users within the same group to have slightly different permissions. Has anyone been able to accomplish this? Is this even possible? It seems as though I can change permissions for both the Group as well as User, but when it comes to granting access it's one or the other and there are far too many user records to set individual permissions per user. Any help is greatly appreciated. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: ACL : Group vs. User
In fact I have checked it out, I use that very same plugin. The demo on the site uses the 1.3 plugin and from all outward appearances seems to work as I would expect, or at least would like it to. I'm using the 2.0 version, not sure if there is a significant difference between the two but my setup does not work the exactly the same. Have you used this plugin? On Sunday, February 24, 2013 1:37:03 PM UTC-5, Robert Winkky wrote: Have you checked out http://www.alaxos.net/blaxos/pages/view/plugin_acl_2.0 ? On Sunday, February 24, 2013 11:02:37 AM UTC-5, CrotchFrog wrote: I have implemented ACL in my app and I'm regulating access using Groups, however, I would like for some users within the same group to have slightly different permissions. Has anyone been able to accomplish this? Is this even possible? It seems as though I can change permissions for both the Group as well as User, but when it comes to granting access it's one or the other and there are far too many user records to set individual permissions per user. Any help is greatly appreciated. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CakePHP ACL and paginate
Fow retrive all documents that a user can access and how can I paginate them I should retrieve with some queries all the ids of the documents that a user can access and then do a CakePHP find('all') with an IN condition on all ids. Now for me this is very not efficient and if I have thousands of ids it become impossible to do. I would ask if there is a best practise to do it Many Thanks On Friday, 1 February 2013 18:26:23 UTC+1, André Luis wrote: I am not sure, but i think you can do it with Containable behavior or with joins and conditions Em quinta-feira, 31 de janeiro de 2013 14h30min37s UTC-2, byqsri escreveu: Hi I have these Model : User (User belongsTo Group) Group (Group hasMany User) Document I manage permissions to access to documents with ACL (User and Group like Aro and Document like Aco) Now I have two questions : 1)How can I retrive all documents that a user can access and how can I paginate them? 2)How can I retrive all users that can access to a certainly document and how can I paginate them? I would find best solutions about these questions (i.e. cn the lowest number of not heavy queries) Many Thnaks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CakePHP ACL and paginate
Can someone help me about this? Many Thanks On Thursday, 31 January 2013 17:30:37 UTC+1, byqsri wrote: Hi I have these Model : User (User belongsTo Group) Group (Group hasMany User) Document I manage permissions to access to documents with ACL (User and Group like Aro and Document like Aco) Now I have two questions : 1)How can I retrive all documents that a user can access and how can I paginate them? 2)How can I retrive all users that can access to a certainly document and how can I paginate them? I would find best solutions about these questions (i.e. cn the lowest number of not heavy queries) Many Thnaks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CakePHP ACL and paginate
I am not sure, but i think you can do it with Containable behavior or with joins and conditions Em quinta-feira, 31 de janeiro de 2013 14h30min37s UTC-2, byqsri escreveu: Hi I have these Model : User (User belongsTo Group) Group (Group hasMany User) Document I manage permissions to access to documents with ACL (User and Group like Aro and Document like Aco) Now I have two questions : 1)How can I retrive all documents that a user can access and how can I paginate them? 2)How can I retrive all users that can access to a certainly document and how can I paginate them? I would find best solutions about these questions (i.e. cn the lowest number of not heavy queries) Many Thnaks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
CakePHP ACL and paginate
Hi I have these Model : User (User belongsTo Group) Group (Group hasMany User) Document I manage permissions to access to documents with ACL (User and Group like Aro and Document like Aco) Now I have two questions : 1)How can I retrive all documents that a user can access and how can I paginate them? 2)How can I retrive all users that can access to a certainly document and how can I paginate them? I would find best solutions about these questions (i.e. cn the lowest number of not heavy queries) Many Thnaks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Restrict access to records for certain groups / control by acl
Hi I am using ACL to control access for groups and users to different actions. Now I would like to extend this behaviour to record level. Think of 3 groups: Users, agents and administrators. The model for restricted access is company for example (in real life there are much more like documents a.s.o) Admins should have CRUD access to all companies application wide, agents only to the ones which have an corresponding agent_id and users have no admin control at all (easy because of acl). So far so good. I could hack every controller to find out which companies are allowed, but I think this is not really the MVC/DRY way, because there are many models which share this behaviour. Could you point me into the right direction? Next: I would like to give the decision if a user could access all records or only his own ones in the hand of acl. Ive made to methods for this (in the corresponding controller - here companies): admin_all and admin_own which returns a list of all valid ids. These methods/acos are easily integrated into acl. Is this the right approach? Hope that Ive explained my problem good enough - not so easy for me in english ;) Thank you, Frank -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL in helper
Sounds like a good approach - I'll give it a whirl. Thanks. Jeremy Burns Class Outfit http://www.classoutfit.com On 13 Jan 2013, at 04:40:06, Jamie jamie@gmail.com wrote: How does that help? Well, you asked how to access ACL information inside your plugin. That's how. As for referencing the ACL component inside of your helper, while technically possible, that's not the best practice since you'd be mixing the view and controller layers (since helpers live in the view layer and components in the controller layer). So that's why I suggested the helper. The best method I've found, and which I've been using for a while now, is actually to gather up the array of links that will be in your menu inside of a component. Do all of your permissions checks there, and then set the resulting array of links as a view variable. Then, use your helper to parse out that array into your ul menu. That allows you to keep the permission checking where it (arguably) belongs, in the controller layer, while letting the view layer just focus on displaying the information you give to it. On Friday, January 11, 2013 10:09:43 PM UTC-8, Jeremy Burns wrote: How does that help? Why wouldn't I reference the Acl component inside my current helper? For clarity... the helper parses a config file an build up an menu that contains one or many links - typically lis into a ul. I want to be sure that the current user has permissions for 'this' action before adding the li. Jeremy Burns Class Outfit http://www.classoutfit.com On 12 Jan 2013, at 03:19:45, Jamie jami...@gmail.com wrote: Do you mean that you want to use check the user's permissions inside your plugin's helper? In that case, I would write another helper that you can use to check all of the ACL permissions. On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote: I have a Navigation plugin that contains a helper. It's used for creating menus dynamically. I want to check a user's permissions via ACL before adding a menu item. How can I user the ACL component inside the plugin? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL in helper
On Sat, Jan 12, 2013 at 11:40 PM, Jamie jamie@gmail.com wrote: How does that help? Well, you asked how to access ACL information inside your plugin. I think what Jeremy was getting at was that you suggested creating another helper, which doesn't make sense. I agree that the permissions should be checked by the controller, and the perms/routes passed to the view/helper. But I think this might be complicated by the fact that this nav helper appears to get its routes from a config file. I don't think that's a good approach, this ACL question being a good example of why not. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL in helper
You could fetch an array of routes (arrays) that the user can access and pass it to the view. Pretty kludgy, though. I've found that sometimes putting something into a plugin is far more trouble than it's worth. Helpers, too, for that matter. On Sat, Jan 12, 2013 at 1:09 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: How does that help? Why wouldn't I reference the Acl component inside my current helper? For clarity... the helper parses a config file an build up an menu that contains one or many links - typically lis into a ul. I want to be sure that the current user has permissions for 'this' action before adding the li. Jeremy Burns Class Outfit http://www.classoutfit.com On 12 Jan 2013, at 03:19:45, Jamie jamie@gmail.com wrote: Do you mean that you want to use check the user's permissions inside your plugin's helper? In that case, I would write another helper that you can use to check all of the ACL permissions. On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote: I have a Navigation plugin that contains a helper. It's used for creating menus dynamically. I want to check a user's permissions via ACL before adding a menu item. How can I user the ACL component inside the plugin? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL in helper
How does that help? Well, you asked how to access ACL information inside your plugin. That's how. As for referencing the ACL component inside of your helper, while technically possible, that's not the best practice since you'd be mixing the view and controller layers (since helpers live in the view layer and components in the controller layer). So that's why I suggested the helper. The best method I've found, and which I've been using for a while now, is actually to gather up the array of links that will be in your menu inside of a component. Do all of your permissions checks there, and then set the resulting array of links as a view variable. Then, use your helper to parse out that array into your ul menu. That allows you to keep the permission checking where it (arguably) belongs, in the controller layer, while letting the view layer just focus on displaying the information you give to it. On Friday, January 11, 2013 10:09:43 PM UTC-8, Jeremy Burns wrote: How does that help? Why wouldn't I reference the Acl component inside my current helper? For clarity... the helper parses a config file an build up an menu that contains one or many links - typically lis into a ul. I want to be sure that the current user has permissions for 'this' action before adding the li. Jeremy Burns Class Outfit http://www.classoutfit.com On 12 Jan 2013, at 03:19:45, Jamie jami...@gmail.com javascript: wrote: Do you mean that you want to use check the user's permissions inside your plugin's helper? In that case, I would write another helper that you can use to check all of the ACL permissions. On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote: I have a Navigation plugin that contains a helper. It's used for creating menus dynamically. I want to check a user's permissions via ACL before adding a menu item. How can I user the ACL component inside the plugin? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL in helper
Do you mean that you want to use check the user's permissions inside your plugin's helper? In that case, I would write another helper that you can use to check all of the ACL permissions. On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote: I have a Navigation plugin that contains a helper. It's used for creating menus dynamically. I want to check a user's permissions via ACL before adding a menu item. How can I user the ACL component inside the plugin? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL in helper
How does that help? Why wouldn't I reference the Acl component inside my current helper? For clarity... the helper parses a config file an build up an menu that contains one or many links - typically lis into a ul. I want to be sure that the current user has permissions for 'this' action before adding the li. Jeremy Burns Class Outfit http://www.classoutfit.com On 12 Jan 2013, at 03:19:45, Jamie jamie@gmail.com wrote: Do you mean that you want to use check the user's permissions inside your plugin's helper? In that case, I would write another helper that you can use to check all of the ACL permissions. On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote: I have a Navigation plugin that contains a helper. It's used for creating menus dynamically. I want to check a user's permissions via ACL before adding a menu item. How can I user the ACL component inside the plugin? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
ACL in helper
I have a Navigation plugin that contains a helper. It's used for creating menus dynamically. I want to check a user's permissions via ACL before adding a menu item. How can I user the ACL component inside the plugin? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: [URGENT] Acl::check() is not working
No, that's not what i mean. Administrator can choose a group from a list group, then click List Access . After clicking List Access button, will open List Access Rights Page. Ahh hard to say :( i think nobody will understand :( aaarrrgghhh.. 2012/11/13 lowpass zijn.digi...@gmail.com This might help: http://bakery.cakephp.org/articles/thanos/2011/01/17/acl_checking_permissions_in_views On Mon, Nov 12, 2012 at 1:37 AM, polutan polution at all linspir...@gmail.com wrote: i have group's access rights setting page http://imageshack.us/f/600/accessrightslist.png/ . now i using Acl::check() to check whether an access item is allowed or denied, if allowed the checkbox is checked. I create my checkbox form using an helper this is my helper code http://pastie.org/5364102 . Using Acl::check is so expensive, if i load my access rights setting page, my page have 150+ query. 150+ query was caused by Acl::check(). Because i call Acl::check() in every data item in my helper code. Then, i have an idea. My goal is just make the checkbox checked or unchecked. So i don't want to use Acl::check() again for my helper. I only use Acl::check() in my controller. So I make my own component to load all data from aros_acos table and replace Acl::check() call in my helper using my own method to check. and this is my component code http://pastie.org/5364107 . So, My problem is : If i use my own method inside my helper (not using Acl::check() ) : codeif ($this-__checkPermission($item[Aco][id], $this-permissions))/code my Acl::check() inside my controller not working. if i use Acl::check() inside my helper: codeif ($this-aclComponent-check($this-aroObject, $path))/code my Acl::check() inside my controller is working good. So, this problem make my controller can not insert data to aros_acos. This is my controller code http://pastie.org/5364105 -- AccessRightsController and this is my array structure when data submitted http://pastie.org/5364125 Please help me, Thank you :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Coklat Stroberi -- Web Dev Training Centre* http://www.facebook.com/pages/Coklat-Stroberi/249514251728226 (info lebih lanjut) http://coklatstroberi.net Jl. Raya Padang Luwih (Dalung) No.141 - Telp. (0361) 9006118 atau 08174128301 - Badung, Bali. Sebelah timur traffic light pertigaan perumahan dalung permai. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: [URGENT] Acl::check() is not working
This might help: http://bakery.cakephp.org/articles/thanos/2011/01/17/acl_checking_permissions_in_views On Mon, Nov 12, 2012 at 1:37 AM, polutan polution at all linspir...@gmail.com wrote: i have group's access rights setting page http://imageshack.us/f/600/accessrightslist.png/ . now i using Acl::check() to check whether an access item is allowed or denied, if allowed the checkbox is checked. I create my checkbox form using an helper this is my helper code http://pastie.org/5364102 . Using Acl::check is so expensive, if i load my access rights setting page, my page have 150+ query. 150+ query was caused by Acl::check(). Because i call Acl::check() in every data item in my helper code. Then, i have an idea. My goal is just make the checkbox checked or unchecked. So i don't want to use Acl::check() again for my helper. I only use Acl::check() in my controller. So I make my own component to load all data from aros_acos table and replace Acl::check() call in my helper using my own method to check. and this is my component code http://pastie.org/5364107 . So, My problem is : If i use my own method inside my helper (not using Acl::check() ) : codeif ($this-__checkPermission($item[Aco][id], $this-permissions))/code my Acl::check() inside my controller not working. if i use Acl::check() inside my helper: codeif ($this-aclComponent-check($this-aroObject, $path))/code my Acl::check() inside my controller is working good. So, this problem make my controller can not insert data to aros_acos. This is my controller code http://pastie.org/5364105 -- AccessRightsController and this is my array structure when data submitted http://pastie.org/5364125 Please help me, Thank you :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
[URGENT] Acl::check() is not working
i have group's access rights setting page http://imageshack.us/f/600/accessrightslist.png/ . now i using Acl::check() to check whether an access item is allowed or denied, if allowed the checkbox is checked. I create my checkbox form using an helper this is my helper code http://pastie.org/5364102 . Using Acl::check is so expensive, if i load my access rights setting page, my page have 150+ query. 150+ query was caused by Acl::check(). Because i call Acl::check() in every data item in my helper code. Then, i have an idea. My goal is just make the checkbox checked or unchecked. So i don't want to use Acl::check() again for my helper. I only use Acl::check() in my controller. So I make my own component to load all data from aros_acos table and replace Acl::check() call in my helper using my own method to check. and this is my component code http://pastie.org/5364107 . So, My problem is : If i use my own method inside my helper (not using Acl::check() ) : codeif ($this-__checkPermission($item[Aco][id], $this-permissions))/code my Acl::check() inside my controller not working. if i use Acl::check() inside my helper: codeif ($this-aclComponent-check($this-aroObject, $path))/code my Acl::check() inside my controller is working good. So, this problem make my controller can not insert data to aros_acos. This is my controller code http://pastie.org/5364105 -- AccessRightsController and this is my array structure when data submitted http://pastie.org/5364125 Please help me, Thank you :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL renamed database table
Thanks that did it! I forgot that part, stupid mistake. Op vrijdag 9 november 2012 19:46:13 UTC+1 schreef cricket het volgende: The table names normally follow from the model names: Group - groups. If you want to do something different you'll need to add a $useTable var at a minimum. Be sure to delete files in tmp/models folder, also. On Fri, Nov 9, 2012 at 10:08 AM, iFemke femkev...@gmail.com javascript: wrote: I have followed the Simple Acl controlled Application tutorial and all was working. Then I renamed the database table (which was groups) in to something else (_companyname_groups). Now I have errors saying Cake can't find my groups table, which is logical because I renamed it. I can't, however, find how of where I can say that he has to use the new table name instead. Or do I have to do all the steps again as explained in the tutorial? I hope you guys can help me! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript:. To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
ACL renamed database table
I have followed the Simple Acl controlled Application tutorial and all was working. Then I renamed the database table (which was groups) in to something else (_companyname_groups). Now I have errors saying Cake can't find my groups table, which is logical because I renamed it. I can't, however, find how of where I can say that he has to use the new table name instead. Or do I have to do all the steps again as explained in the tutorial? I hope you guys can help me! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL renamed database table
The table names normally follow from the model names: Group - groups. If you want to do something different you'll need to add a $useTable var at a minimum. Be sure to delete files in tmp/models folder, also. On Fri, Nov 9, 2012 at 10:08 AM, iFemke femkevgem...@gmail.com wrote: I have followed the Simple Acl controlled Application tutorial and all was working. Then I renamed the database table (which was groups) in to something else (_companyname_groups). Now I have errors saying Cake can't find my groups table, which is logical because I renamed it. I can't, however, find how of where I can say that he has to use the new table name instead. Or do I have to do all the steps again as explained in the tutorial? I hope you guys can help me! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Acl::check() the $action parameter and the default vals , what does that mean?
Some explanation here: http://stackoverflow.com/questions/9063617/cakephp-acl-action-mode-vs-crud-mode Le jeudi 8 novembre 2012 03:41:53 UTC+1, polutan polution at all a écrit : anybody? Please help me 2012/11/5 polutan polution at all linsp...@gmail.com javascript: Hello folks :) I don't understand what does $action param and its default values mean? Because i can directly write $this-Acl-check(warriors/Aragorn, ControllerNames/myMethodName) then it works, i don't need to supply $action param. Then if i do something like at the manual $this-Acl-check( 'warriors/Aragorn', 'Weapons', 'create'); which method in my WeaponsController class categorized as 'create' ? . Then suppose i have reloadAmmunition() method in my WeaponsController class. So what reloadAmmunition() is? a create or read or update or a delete? Please somebody help me, i need your enlightenment. Thank You :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Coklat Stroberi -- Web Dev Training Centre* http://www.facebook.com/pages/Coklat-Stroberi/249514251728226 (info lebih lanjut) http://coklatstroberi.net Jl. Raya Padang Luwih (Dalung) No.141 - Telp. (0361) 9006118 atau 08174128301 - Badung, Bali. Sebelah timur traffic light pertigaan perumahan dalung permai. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL - Error Messages after Add New User
Hi Karthi I have the same problem as the person who posted the errors. I truncated the the 2 tables and still doesn't work. Do you perhaps have another solution to this? Thanks Victor On Wednesday, 21 March 2012 19:28:17 UTC+2, karthik wrote: First truncate all data's in GROUP and USER table then add data's once again. Make sure whether you have linked GROUP and USER model correctly using $actsAs requester. and its relations GROUP hasMany USER and USER belongsTo GROUP -karthi On Mar 18, 9:26 am, Passivhaus Experte i...@passivhaus-experte.de wrote: Hi, I'm a newbie. I use the CakePHP Version 2.1.0 and followed the following descriptionhttp:// book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-cont... Currently I'm at the point Acts As a Requester and have the source code added to the Models User and Group. Also, I've successfully created 3 groups. When I add a user to the User table the user is created, but in the table Aros was no record is added... I am a little puzzled, hope you can help me. Error Messages: -- Notice (8): Array to string conversion [CORE/Cake/Model/Datasource/DboSource.php, line 436] Code Context $sql= 'node' $params = array( (int) 0 = array( ) ) $prepareOptions = array() $this = object(Mysql) {} $query = object(PDOStatement) {} PDOStatement::execute() - [internal], line ?? DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 436 DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 403 DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 646 DboSource::query() - CORE/Cake/Model/Datasource/DboSource.php, line 588 Model::__call() - CORE/Cake/Model/Model.php, line 776 Aro::node() - CORE/Cake/Model/Behavior/AclBehavior.php, line 88 AclBehavior::node() - CORE/Cake/Model/Behavior/AclBehavior.php, line 88 AclBehavior::afterSave() - CORE/Cake/Model/Behavior/AclBehavior.php, line 106 ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 130 call_user_func - [internal], line ?? CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246 Model::save() - CORE/Cake/Model/Model.php, line 1730 UsersController::add() - APP/Controller/UsersController.php, line 68 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 488 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 103 -- Database Error Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'node' at line 1 SQL Query: node Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp Stack Trace CORE/Cake/Model/Datasource/DboSource.php line 436 → PDOStatement-execute(array) CORE/Cake/Model/Datasource/DboSource.php line 403 → DboSource-_execute(string, array) CORE/Cake/Model/Datasource/DboSource.php line 646 → DboSource-execute(string, array, array) CORE/Cake/Model/Datasource/DboSource.php line 588 → DboSource-fetchAll(string, array, array) CORE/Cake/Model/Model.php line 776 → DboSource-query(string, array, Aro) CORE/Cake/Model/Behavior/AclBehavior.php line 88 → Model-__call(string, array) CORE/Cake/Model/Behavior/AclBehavior.php line 88 → Aro-node(array) CORE/Cake/Model/Behavior/AclBehavior.php line 106 → AclBehavior-node(User, array, string) [internal function] → AclBehavior-afterSave(User, boolean, array) CORE/Cake/Utility/ObjectCollection.php line 130 → call_user_func_array(array, array) [internal function] → ObjectCollection-trigger(CakeEvent) CORE/Cake/Event/CakeEventManager.php line 246 → call_user_func(array, CakeEvent) CORE/Cake/Model/Model.php line 1730 → CakeEventManager-dispatch(CakeEvent) APP/Controller/UsersController.php line 68 → Model-save(array) [internal function] → UsersController-add() CORE/Cake/Controller/Controller.php line 488 → ReflectionMethod-invokeArgs(UsersController, array) CORE/Cake/Routing/Dispatcher.php line 103 → Controller-invokeAction(CakeRequest) CORE/Cake/Routing/Dispatcher.php line 85 → Dispatcher-_invoke(UsersController, CakeRequest, CakeResponse) APP/webroot/index.php line 96 → Dispatcher-dispatch(CakeRequest, CakeResponse) -- Grüße Sie freundlich. Tim Bischoff (Indianer3c) Blogautor
Acl::check() the $action parameter and the default vals , what does that mean?
Hello folks :) I don't understand what does $action param and its default values mean? Because i can directly write $this-Acl-check(warriors/Aragorn, ControllerNames/myMethodName) then it works, i don't need to supply $action param. Then if i do something like at the manual $this-Acl-check( 'warriors/Aragorn', 'Weapons', 'create'); which method in my WeaponsController class categorized as 'create' ? . Then suppose i have reloadAmmunition() method in my WeaponsController class. So what reloadAmmunition() is? a create or read or update or a delete? Please somebody help me, i need your enlightenment. Thank You :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Acl::check() the $action parameter and the default vals , what does that mean?
anybody? Please help me 2012/11/5 polutan polution at all linspir...@gmail.com Hello folks :) I don't understand what does $action param and its default values mean? Because i can directly write $this-Acl-check(warriors/Aragorn, ControllerNames/myMethodName) then it works, i don't need to supply $action param. Then if i do something like at the manual $this-Acl-check( 'warriors/Aragorn', 'Weapons', 'create'); which method in my WeaponsController class categorized as 'create' ? . Then suppose i have reloadAmmunition() method in my WeaponsController class. So what reloadAmmunition() is? a create or read or update or a delete? Please somebody help me, i need your enlightenment. Thank You :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Coklat Stroberi -- Web Dev Training Centre* http://www.facebook.com/pages/Coklat-Stroberi/249514251728226 (info lebih lanjut) http://coklatstroberi.net Jl. Raya Padang Luwih (Dalung) No.141 - Telp. (0361) 9006118 atau 08174128301 - Badung, Bali. Sebelah timur traffic light pertigaan perumahan dalung permai. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Many-to-many ACL
On Friday, 2 November 2012 06:57:13 UTC+7, Daniel Hdez wrote: Hello, hey i have the same problem, do you find a solution yet? greetings! :) If you read the thread, you'll find the solution in front of you :p -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Many-to-many ACL
Hello, hey i have the same problem, do you find a solution yet? greetings! :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL - delete groups?
Thanks, Jeremy - that's just the answer I needed. The docs seemed to indicate that this type of handling would be taken care of by the Acl component of Cake, so thanks for clearing it up. I appreciate the help! Best, Adam On Thursday, 18 October 2012 00:49:54 UTC-4, Jeremy Burns wrote: The first thing to fix is referential integrity in your database so that a group that has users cannot be deleted. If your db won't support RI (if you're using MyIsam instead of InnoDB, for example) then at least put some checks in your code before you do the delete. If you don't, the users belong to a now vanished group. That will confuse the Acl tables as they do not deploy RI out of the box (they should have relations between aros = aros_acos = acos, but they don't), and even then it's hard to restrict group deletes there as the foreign key to either groups.id or users.id is stored in the same field in the aros table, although you can add RI from aros.parent_id = aros.id. If the group that contains the users is removed from the aros table, the parent id points to an id that doesn't exist and the code will explode. Jeremy Burns Class Outfit http://www.classoutfit.com On 18 Oct 2012, at 04:53:25, Vanja Dizdarević lex.non...@gmail.comjavascript: wrote: Can you post some code maybe? On Thursday, October 18, 2012 1:25:22 AM UTC+2, Adam Strom wrote: Hi All - I've completed the Acl tutorial in the 2.0 docs and it says: ...anytime you create or delete a user/group the Aro table is updated. Yet when I delete a group that has users assigned to it, any further edits to those users throws an error: Error: [CakeException] AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = 16 ) Even if I assign them to an existing group, the update occurs within the Users table but the aros table never gets a new entry for that user. Any thoughts? Thanks! Adam -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
ACL - delete groups?
Hi All - I've completed the Acl tutorial in the 2.0 docs and it says: ...anytime you create or delete a user/group the Aro table is updated. Yet when I delete a group that has users assigned to it, any further edits to those users throws an error: Error: [CakeException] AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = 16 ) Even if I assign them to an existing group, the update occurs within the Users table but the aros table never gets a new entry for that user. Any thoughts? Thanks! Adam -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL - delete groups?
Can you post some code maybe? On Thursday, October 18, 2012 1:25:22 AM UTC+2, Adam Strom wrote: Hi All - I've completed the Acl tutorial in the 2.0 docs and it says: ...anytime you create or delete a user/group the Aro table is updated. Yet when I delete a group that has users assigned to it, any further edits to those users throws an error: Error: [CakeException] AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = 16 ) Even if I assign them to an existing group, the update occurs within the Users table but the aros table never gets a new entry for that user. Any thoughts? Thanks! Adam -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ACL - delete groups?
The first thing to fix is referential integrity in your database so that a group that has users cannot be deleted. If your db won't support RI (if you're using MyIsam instead of InnoDB, for example) then at least put some checks in your code before you do the delete. If you don't, the users belong to a now vanished group. That will confuse the Acl tables as they do not deploy RI out of the box (they should have relations between aros = aros_acos = acos, but they don't), and even then it's hard to restrict group deletes there as the foreign key to either groups.id or users.id is stored in the same field in the aros table, although you can add RI from aros.parent_id = aros.id. If the group that contains the users is removed from the aros table, the parent id points to an id that doesn't exist and the code will explode. Jeremy Burns Class Outfit http://www.classoutfit.com On 18 Oct 2012, at 04:53:25, Vanja Dizdarević lex.non.scri...@gmail.com wrote: Can you post some code maybe? On Thursday, October 18, 2012 1:25:22 AM UTC+2, Adam Strom wrote: Hi All - I've completed the Acl tutorial in the 2.0 docs and it says: ...anytime you create or delete a user/group the Aro table is updated. Yet when I delete a group that has users assigned to it, any further edits to those users throws an error: Error: [CakeException] AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = 16 ) Even if I assign them to an existing group, the update occurs within the Users table but the aros table never gets a new entry for that user. Any thoughts? Thanks! Adam -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
It is possible multiple applications share the same tables ACL?
Currently I have to share a database with more applications and the tables are prefixed to identify each application. So, many applications can be sharing the same tables ACL? Or, I could change the default names of the tables ACL and add the prefix of each application, eg app_aros, app_acos, app_aros_acos? /* beforeFilter() @ AppController */ $this-Acl-Aro-useTable = app_aros; $this-Acl-Aco-useTable = app_acos; This code worked but have not found a way to set the value for the model table Permission... Sugestions? [Sorry for my bad english] -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
ACL with custom tables
Hi Everyone, I set up simple ACL in my site. I followed this tutorial http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html It's from the cookbook. https://lh3.googleusercontent.com/-yAfcRRps2o4/UGkS1wwimkI/ALU/D7lq_XeXuc0/s1600/Snapshot+10%3A1%3A12+11%3A46+AM.png For some reason I have to name my tables admin_users and admin_user_roles. I can set ACOs and AROs and permissions but when I try to open a page. It still checks the User model. Instead of the Admin Users table. Any ideas on what config file to change or something so admin_users table will be checked?? Thanks a lot guys! -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
ACL
My problem: i have 4 tables for users: Groups Users ProfileGoups Profiles so at the beggining in Groups i would like to have 3 groups Guest (for guest visits to enable display pages and index view blog posts etc) Account Group to enable add profiles and Admin. and here is my problem how to Acl for ProfileGroups and Profiles coz real user is User Profile. -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: node in Acl behavoir
Does your model have AclBehavior set up? public $actsAs = array('Acl' = 'controlled'); On Tue, Aug 28, 2012 at 12:07 PM, Elhelaly rez...@gmail.com wrote: Using Cakephp 2.1.2 I am trying to make a method to generate the Aco's (check if there is a new controller or methods and add it in aocs table) I have a problem with using the node method , get this error Database Error SQL Query: node my method code in usersController.php public function admin_generate() { $this-loadModel(Aco) $root = $this-Aco-node('controllers'); } -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
node in Acl behavoir
Using Cakephp 2.1.2 I am trying to make a method to generate the Aco's (check if there is a new controller or methods and add it in aocs table) I have a problem with using the node method , get this error Database Error *SQL Query: * node my method code in usersController.php public function admin_generate() { $this-loadModel(Aco) $root = $this-Aco-node('controllers'); } -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: Basic ACL tutorial in 1.3 book will not work because Auth is not setting Auth.User
Can anyone help me? On Sunday, August 5, 2012 7:13:02 PM UTC-4, osucoder wrote: I cannot get the login function to work after following the acl tutorial. I'm getting an Auth.User doesn't exist error when I dump the Session variable after calling $this-Session-read('Auth.User); If searched all over the place for an answer and I am yet to find one. Any help would be greatly appreciated. Thank you. app_controller 1 ?php 2 class AppController extends Controller { 3 var $components = array('Acl', 'Auth', 'Session', 'Cookie'); 4 var $helpers = array('Html', 'Form', 'Session'); 5 function beforeFilter(){ 6 //Configure AuthComponent 7 $this-Auth-actionPath = 'controllers/'; 8 $this-Auth-authorize = 'actions'; 9 $this-Auth-loginAction = array('controller'='users', 'action'='login'); 10 $this-Auth-logoutRedirect = array('controller'='users', 'action'='logout'); 11 $this-Auth-loginRedirect = array('controller'='posts', 'action'='add'); 12 $this-Auth-allowedActions = array('display'); 13 } 14 } 15 ? login action 6 7 function login(){ 8 if($this-Session-read('Auth.User')){ 9 $this-Session-setFlash('You are logged in!'); 10 $this-redirect('/', null, false); 11 12 } 13 debug($this-Auth, true); 14 } -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Basic ACL tutorial in 1.3 book will not work because Auth is not setting Auth.User
I cannot get the login function to work after following the acl tutorial. I'm getting an Auth.User doesn't exist error when I dump the Session variable after calling $this-Session-read('Auth.User); If searched all over the place for an answer and I am yet to find one. Any help would be greatly appreciated. Thank you. app_controller 1 ?php 2 class AppController extends Controller { 3 var $components = array('Acl', 'Auth', 'Session', 'Cookie'); 4 var $helpers = array('Html', 'Form', 'Session'); 5 function beforeFilter(){ 6 //Configure AuthComponent 7 $this-Auth-actionPath = 'controllers/'; 8 $this-Auth-authorize = 'actions'; 9 $this-Auth-loginAction = array('controller'='users', 'action'='login'); 10 $this-Auth-logoutRedirect = array('controller'='users', 'action'='logout'); 11 $this-Auth-loginRedirect = array('controller'='posts', 'action'='add'); 12 $this-Auth-allowedActions = array('display'); 13 } 14 } 15 ? login action 6 7 function login(){ 8 if($this-Session-read('Auth.User')){ 9 $this-Session-setFlash('You are logged in!'); 10 $this-redirect('/', null, false); 11 12 } 13 debug($this-Auth, true); 14 } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
ACL - how to set user permissions along with group permission
Hi, I've followed the cake acl tutorials and have a working example. However the tutorial is purely based around groups (it tells you to add some code that disregards users and just looks at group permissions). How can I keep the groups working but also override things for individual users? Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: ACL - how to set user permissions along with group permission
There is nothing stopping you from treating a single person as a group. IOW the person becomes the ARO you may have to write some additional code with if group || username kind of conditions OTOH are you looking for row level permissions? That is a different game altogether HTH Tarique P.S. OMG too many TLAs ;-) On Fri, Jul 27, 2012 at 4:51 PM, bigjimmi james.jac...@eclipselegal.co.uk wrote: Hi, I've followed the cake acl tutorials and have a working example. However the tutorial is purely based around groups (it tells you to add some code that disregards users and just looks at group permissions). How can I keep the groups working but also override things for individual users? Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: ACL - how to set user permissions along with group permission
Hi, thanks for the reply. Basically I'm wanting to add access control permissions to individual db rows? but I guess that would be the same as allow access to /modelname/view/1? Struggling to find any info on this. Thanks in advance On Friday, 27 July 2012 12:21:01 UTC+1, bigjimmi wrote: Hi, I've followed the cake acl tutorials and have a working example. However the tutorial is purely based around groups (it tells you to add some code that disregards users and just looks at group permissions). How can I keep the groups working but also override things for individual users? Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: ACL - how to set user permissions along with group permission
On Friday, July 27, 2012 8:39:01 PM UTC+7, bigjimmi wrote: Hi, thanks for the reply. Basically I'm wanting to add access control permissions to individual db rows? but I guess that would be the same as allow access to /modelname/view/1? Struggling to find any info on this. Checkout ceeram's Authorize plugin in github. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php