Hi,
I'm thinking right now about some role and permission
stuff for my webapp. But I'm asking myself what will
be a good approach for this.
At first I created a lot of classes like AdminRole,
MemberRole, CreatePermission, ModifyPermission etc.
I used the class objects for this. These only carry
Norbert Hartl wrote:
At first I created a lot of classes like AdminRole,
MemberRole, CreatePermission, ModifyPermission etc.
I used the class objects for this. These only carry
some state like index, label. The role objects also
carry a set of permissions.
I'm a big fan of instances :-)
Norbert Hartl wrote:
Hi,
I'm thinking right now about some role and permission
stuff for my webapp. But I'm asking myself what will
be a good approach for this.
P.S. have you looked at the SmallWiki permission and role implementation?
___
Beginners
On Tue, 2007-06-26 at 15:45 +0200, Michael Rueger wrote:
Norbert Hartl wrote:
At first I created a lot of classes like AdminRole,
MemberRole, CreatePermission, ModifyPermission etc.
I used the class objects for this. These only carry
some state like index, label. The role objects also
On Tue, 2007-06-26 at 15:46 +0200, Michael Rueger wrote:
Norbert Hartl wrote:
Hi,
I'm thinking right now about some role and permission
stuff for my webapp. But I'm asking myself what will
be a good approach for this.
P.S. have you looked at the SmallWiki permission and role