1
flaxy
Removing users from groups
  • 2004/4/3 20:50

  • flaxy

  • Just popping in

  • Posts: 47

  • Since: 2003/11/21


I'm trying to remove a user from the Webmaster group and everytime I try it comes up with a blank page that says done and none of the information sticks. Any help would be nice..

2
Stewdio
Re: Removing users from groups
  • 2004/4/3 20:57

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


This is a known issue with 2.0.6

You can find a fix for it here.

3
flaxy
Re: Removing users from groups
  • 2004/4/4 3:27

  • flaxy

  • Just popping in

  • Posts: 47

  • Since: 2003/11/21


That fix will not allow me to remove users from the webmasters group my friend

4
flaxy
Re: Removing users from groups
  • 2004/4/4 3:47

  • flaxy

  • Just popping in

  • Posts: 47

  • Since: 2003/11/21


I need like a super user or somthing i guess...

5
Stewdio
Re: Removing users from groups
  • 2004/4/4 4:03

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


I'm sorry I was unable to help friend. Sorry for the misdirection.

Perhaps a more thorough search of the forums will yield better results. I am aware that this is a common issue and that a fix has been applied for the next official release of XOOPS.

6
flaxy
Re: Removing users from groups
  • 2004/4/4 16:04

  • flaxy

  • Just popping in

  • Posts: 47

  • Since: 2003/11/21


Stewdio, you have been loads of help. Thank you for all of the help and direction. :)

7
geoffgibbs
Re: Removing users from groups
  • 2004/4/8 23:09

  • geoffgibbs

  • Just popping in

  • Posts: 9

  • Since: 2002/9/23


In the file /modules/system/admin/groups/main.php on or about line 223 you should find the following lines of code (the formatting may be different):
if ($groupid == XOOPS_GROUP_ADMIN) {
  if (
$member_handler->getUserCountByGroup($groupid) <= count($uids)){
    
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_ADMINNO);
  }
} else {


Try changing this to:
if (($groupid == XOOPS_GROUP_ADMIN) && ($member_handler->getUserCountByGroup($groupid) <= count($uids))){
  
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_ADMINNO);
} else {


This should fix the problem.

What happened was, that if you were deleting a user from the admin group, it checked to ensure it was not the last admin user. If it was the last admin user it would displaying an error and redirect the page (as it should). If it wasn't the last user, however, it simply did nothing as the rest of the code was only run if it was not in the admin group.

Anyway. I hope this helps.

Login

Who's Online

212 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits