1
king76
White page after I remove a user from admin's group !
  • 2004/2/26 10:26

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Hello,

On XOOPS 2.06 (new install), If I add a member (test) in admin's group and I want to delete the user (test) from this group, i have a white page ! It's a bug ?

Thks

king

2
king76
Re: White page after I remove a user from admin's group !
  • 2004/2/26 10:50

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Ok I found, the problem is on this file :

modules/system/admin/groups/main.php

If I used files from XOOPS 2.05, i have not problem for remove user from group's admin !

How "prevent" the team about this bug ? thks

king

3
esoho
Re: White page after I remove a user from admin's group !
  • 2004/2/27 2:26

  • esoho

  • Just popping in

  • Posts: 1

  • Since: 2004/2/27


open modules/system/admin/groups/main.php
found under
if ($groupid == XOOPS_GROUP_ADMIN) {
replace with
if ($groupid == 'XOOPS_GROUP_ADMIN') {

4
king76
Re: White page after I remove a user from admin's group !
  • 2004/2/27 15:25

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Yesss !! Your solution is perfect !

Thk you very much !

king

5
phppp
Re: White page after I remove a user from admin's group !
  • 2004/2/27 17:30

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

esoho wrote:
open modules/system/admin/groups/main.php
found under
if ($groupid == XOOPS_GROUP_ADMIN) {
replace with
if ($groupid == 'XOOPS_GROUP_ADMIN') {


I would suspect this solution.


6
king76
Re: White page after I remove a user from admin's group !
  • 2004/2/27 18:14

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Yes possible, but why now i can remove user from admin's group

Have you testing this solution on your website ? (xoops 2.06)

a+

7
phppp
Re: White page after I remove a user from admin's group !
  • 2004/2/27 19:14

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

king76 wrote:
Yes possible, but why now i can remove user from admin's group


Of coz this modification can let you remove an admin.
If you just wanna remove an admin, that's ok.

However, the upgrade of 2.06, as I understand, is try to make admin management more secure by putting some restrict.

If you change XOOPS_GROUP_ADMIN to "XOOPS_GROUP_ADMIN", what will be the consequence?

Try to find out the difference between XOOPS_GROUP_ADMIN and "XOOPS_GROUP_ADMIN", you may find the reason.


8
king76
Re: White page after I remove a user from admin's group !
  • 2004/3/14 13:10

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Bonjour Quebecois et futur voisin :)

En Français qu'est ce cela donnerais ? D'après ce que tu me dis, pour des raisons de sécurité, tu ne me conseilles pas de faire ces modifications ?

XOOPS_GROUP_ADMIN est une constante, donc c'est etrange d'appeler une constante ainsi : "XOOPS_GROUP_ADMIN", tu penses que c'est un trou de sécurité susceptible de me causer des problèmes ?

Le soucis, c'est que j'ai ce bug sur l'ensemble de mes sites et que pour moi c'est plus un bug de XOOPS qu'autre chose

@+

Login

Who's Online

359 user(s) are online (205 user(s) are browsing Support Forums)


Members: 0


Guests: 359


more...

Donat-O-Meter

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

Latest GitHub Commits