Dynamic ACL

189 views
Skip to first unread message

Nilton Souza

unread,
Jan 22, 2013, 8:42:01 PM1/22/13
to pha...@googlegroups.com
Any suggestions for a dynamic ACL?

The end user creates roles and determines what permissions (previously registered) must have. 

These roles should be persisted to the database and loaded during the login process.

Andres Gutierrez

unread,
Jan 23, 2013, 11:10:07 PM1/23/13
to pha...@googlegroups.com
in my opinion, the best to achieve this, is creating an ACL in memory right after a user is created/modified, then the ACL must be serialized in a file for each user, when a user is logged in the system, the right file is deserialized to check its permissions, 

The invo application shows how to implement an ACL with Phalcon: https://github.com/phalcon/invo

2013/1/22 Nilton Souza <nil...@nerv.com.br>
Any suggestions for a dynamic ACL?

The end user creates roles and determines what permissions (previously registered) must have. 

These roles should be persisted to the database and loaded during the login process.

--
You received this message because you are subscribed to the Google Groups "Phalcon PHP Framework" group.
To post to this group, send email to pha...@googlegroups.com.
To unsubscribe from this group, send email to phalcon+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/phalcon/-/EZXL0qEM-gcJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Николай Измайлов

unread,
Jan 24, 2013, 12:23:13 AM1/24/13
to pha...@googlegroups.com
        $companies->id = $this->request->getPost("id", "int");
        $companies->name = $this->request->getPost("name", "striptags");
        $companies->telephone = $this->request->getPost("telephone", "striptags");
        $companies->address = $this->request->getPost("address", "striptags");
        $companies->city = $this->request->getPost("city", "striptags");

This can be as a reduced?



2013/1/24 Andres Gutierrez <andres.g...@phalconphp.com>

Николай Измайлов

unread,
Jan 24, 2013, 12:23:51 AM1/24/13
to pha...@googlegroups.com
You can читаьт type fields from the database and put types


2013/1/24 Николай Измайлов <nekul...@gmail.com>

Николай Измайлов

unread,
Jan 24, 2013, 12:24:10 AM1/24/13
to pha...@googlegroups.com
You can read the type of the fields from the database and put types

Andres Gutierrez

unread,
Jan 24, 2013, 3:19:01 PM1/24/13
to pha...@googlegroups.com
You can pass the $_POST superglobal to the save method:

$company->save($_POST)

2013/1/24 Николай Измайлов <nekul...@gmail.com>
Reply all
Reply to author
Forward
0 new messages