Re: permission matrix plugin
Spring Pierre <[email protected]> Mon, 10 Dec 2007 14:09:57 +0100
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi all,
first i'd like to thank you for your answers. they quite helped me in
finding a clear path for the next days ;)
but something keeps bothering me. it's best explaind with dbforms and
permissions. when writing permissions concerning dbforms to the DB,
the "permission matrix plugin" sets the collection path of the
permission triplet [1] to /dbforms2/, as follows:
// dbforms2 permissions are global
// and not url bound
if($plugin == 'admin_dbforms2') {
$localUrl = '/dbforms2/';
}
permission is the asked upon this path, e.g.
$perm->isAllowed(
'/dbforms2/',
array('admin_dbforms2-back-users')
)
$perm->isAllowed(
'/dbforms2/',
array('admin_dbforms2-back-newsletter_from')
)
the problem with that is obvious: you can not edit this permissions
based on the collection path. but the UI will be based on the
collection path...
if you take the blog example, you have admin_dbforms2-back-
blogcomments that is responsible to allow blog comments... if i want
this permission to be different on two blogs, the permission plugin
will only store the "last edited permission"... i.e. for both blogs,
the identifying permission triplet is
* /dbforms2/
* group_id
* admin_dbforms2-back-blogcomments
which is not unique.
i have no clue on how to attempt on solving this.
greetings ... pierre
==
[1] collection path / group id / permission
- - --
Liip AG // Rte de la Fonderie 7 // CH-1700 Fribourg
Fon 026 4222511 // Key id 0x5BF5F8FA // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFHXTqlfjG12Vv1+PoRAtbLAJ4lNzwprFll2J4in9wYnCr6egV8vQCeNvWE
EZkrMbtWWKTfFOgvw8AQ8h4=
=/wIA
-----END PGP SIGNATURE-----
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms