Group Leaders Bugs [message #11945] |
Wed, 23 July 2003 12:41  |
ctbk
 Messages: 142 Registered: April 2002 Location: Milan, Italy
Karma: 0
|
Senior Member |
|
|
First bug:
I created a group where its members don't have any permission at all (banned).
When I try to make someone of my trusted users leader of this group (so he can ban users who deserve it) he loses all his privileges. If I reconfirm his permissions in the group of superusers he belongs to, the problem is solved.
Question: is this the correct behaviour? Group leaders have got to have the same permissions of the group they lead?
Anyway, after I've reconfirmed superuser's permission, he can't still see the entries in the "Show what people are doing" page, as if he didn't have the permissions to see the forum.
Second Bug:
After I added some user in the banned group, and then returned to the group leaders management screen, I can see all the members listed together with the leaders, as if all of them were leaders.
Third Bug:
While adding a leader, if the nick's mask of the leader isn't unique, a list of nick matching the mask entered is shown.
If I click the nick of the member I want to make leader, nothing happens: the same page (list of matching nicks) is loaded again. Result: I can make leaders just ppl with a unique nick. If I have 2 members, Guile and GuileForce in the db, and I want to make Guile a group leader, I can't.
~
~
:wq
[Updated on: Wed, 23 July 2003 12:55] Report message to a moderator
|
|
|
|
|
|
Re: Group Leaders Bugs [message #11951 is a reply to message #11950] |
Wed, 23 July 2003 13:24   |
ctbk
 Messages: 142 Registered: April 2002 Location: Milan, Italy
Karma: 0
|
Senior Member |
|
|
To solve the third bug, I think it's enough to change line 79 of file admgrouplead.php from:
$c = uq('SELECT u.id, u.alias FROM '.$tbl.'group_members gm INNER JOIN '.$tbl.'users u ON u.id=gm.user_id WHERE gm.group_id='.$group_id);
to
$c = uq('SELECT u.id, u.alias FROM '.$tbl.'group_members gm INNER JOIN '.$tbl.'users u ON u.id=gm.user_id WHERE gm.group_id='.$group_id WHERE gm.group_leader = 'Y');
I suspect the second one it's more tricky to solve 
Quote: | P.S. For the future please post additional bugs as replies, otherwise I will miss them since I only look at replies not the original message.
|
Yep, no problem with that. I thought you weren't online, so I thought you would read the topic much later
~
~
:wq
[Updated on: Wed, 23 July 2003 13:30] Report message to a moderator
|
|
|
|
|
|
|