Multi-role users

56 views
Skip to first unread message

David Paleino

unread,
Apr 12, 2013, 4:57:32 PM4/12/13
to cork-d...@googlegroups.com
Hello everybody,

I'm developing an application where users may have more than one role -- this is because these roles are not mutually exclusive.

This doesn't seem to be possible in the current version of Cork. Did anyone already face this, and successfully solved it?

Thanks for reading,
David

Dan Pollock

unread,
Oct 1, 2014, 11:42:16 AM10/1/14
to cork-d...@googlegroups.com
Did you find a solution for this?  I am looking for a way to have multiple roles per user and have different access levels based on group membership.

David Paleino

unread,
Oct 1, 2014, 3:37:10 PM10/1/14
to Dan Pollock, cork-d...@googlegroups.com
On Wed, 1 Oct 2014 08:42:15 -0700 (PDT), Dan Pollock wrote:

> Did you find a solution for this? I am looking for a way to have multiple
> roles per user and have different access levels based on group membership.

I just monkey-patched Cork to support this. It might not be elegant, but it
works. ;)

Patch attached - it is based on the version of cork I had (I didn't upgrade
since), but it should be easily adaptable to any new release happened in the
meanwhile.

David

--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
multiple_roles.patch
signature.asc
Reply all
Reply to author
Forward
0 new messages