Configure to use least restrictive permissions [message #36719] |
Mon, 02 April 2007 16:07 |
Marticus
Messages: 272 Registered: June 2002
Karma: 1
|
Senior Member |
|
|
How can I configure fud to use the least restrictive permission rather than the most restrictive in the case where a user is a member of multiple groups? I created a test user and put it in one group with more power over a specific forum, but they need access to that and other forums granted by a different group with lesser permissions. Adding the test user to both groups, it now has permissions of the lesser.
|
|
|
Re: Configure to use least restrictive permissions [message #36725 is a reply to message #36719] |
Mon, 02 April 2007 21:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to edit the grp_rebuild_cache() function inside groups.inc.t.
Inside you will find the following code
<?php if ($o->gco & 131072) {
$list[$o->rid][$o->uid] |= $o->gco;
} else {
$list[$o->rid][$o->uid] &= $o->gco;
} ?>
you need to change it to just
<?php $list[$o->rid][$o->uid] |= $o->gco; ?>
FUDforum Core Developer
|
|
|
|
|