Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

Any ideas on how to implement group-based permissi
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Any ideas on how to implement group-based permissi
#291
Any ideas on how to implement group-based permissi 8 Months, 2 Weeks ago Karma: 0
HI, how you doing?
Do you have a video tutorial about how to create some sort of global ACL object and then store that object in cache of in database in serialized form?

I am also looking for tutorial on how to create database schema for user groups and premissions and then based on those tables create ACL.

Basically I want to store group names in a table like USERGROUP
id auto_increment
group_name
group_description (just for comments and notes about groups, not used for logic)

Then a table with permissions
id auto_increment
permission
description (just for notes, not for login)

The 'permission' will be, for example, 'edit_profile', or 'read_blog_article' or 'change_password'

Then there is a usual USER table with
id
username
password,
firstname,
lastname.
and maybe some other things.

And the tricky thing to somehow to tie the permission_id with group_id and then load all this data into ACL object and then maybe store the ACL somewhere in cache.

Right now I don't have a very clear idea on how to do this.
To make things even more difficult I want to make it so a user can belong to more than one group and then use ACL inheritence to calculate the permission.

If you have any experience or have a good idea about how to implement it, please reply.
dsmith
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#294
Re:Any ideas on how to implement group-based permissi 8 Months, 1 Week ago Karma: 14
Sorry i am replying without a definite answer, just wanting to let you know that I [am] paying attention to your requests.

I am also looking for tutorial on how to create database schema for user groups and premissions and then based on those tables create ACL.
and

Do you have a video tutorial about how to create some sort of global ACL object and then store that object in cache of in database in serialized form?


Believe it or not I once started on this but then felt other topics besides ACL had to be addressed to (i already had about 3 acl tutorials at the time) so I put it on hold.
I very much dislike my current method that I am presenting where a massive ACL object is created for nothing since only small part of it is in use at any time.

I have not seen any concrete solutions on this out there yet so I have to take time to develop my own strategy. This is especially tricky with dynamic assertions.

Again, sorry my answer is like water. I'll do what I can.
alexanderrv
Administrator
Posts: 207
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 661
Content : 42
Web Links : 1
Content View Hits : 89974

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 62 guests online