FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Configure to use least restrictive permissions
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Configure to use least restrictive permissions [message #36719] Mon, 02 April 2007 16:07 Go to next message
Marticus   United States
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: Configure to use least restrictive permissions [message #36731 is a reply to message #36725] Tue, 03 April 2007 13:20 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Cool, but what is this test? ($o->gco & 131072)
Re: Configure to use least restrictive permissions [message #36737 is a reply to message #36731] Wed, 04 April 2007 00:23 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
To see if a user is a group leader or not.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Integrating Photo Galleries with FUDForum
Next Topic: Delete User in Administration - what happens ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 22:27:56 GMT 2024

Total time taken to generate the page: 0.02426 seconds