11
taokrieger
Re: Can't change 'Xoopsgallery's Album Permissions' as admin
  • 2004/1/25 3:36

  • taokrieger

  • Just popping in

  • Posts: 36

  • Since: 2002/10/29


anybody got a clue? This is driving me nuts!

12
SirTanksAlot
Re: Can't change 'Xoopsgallery's Album Permissions' as admin

Is the user that is getting the undesired rights a member of a XOOPS group that has admin rights to XoopsGallery? Can you try a user that does not have admin rights to the module?

13
taokrieger
Re: Can't change 'Xoopsgallery's Album Permissions' as admin
  • 2004/1/25 4:43

  • taokrieger

  • Just popping in

  • Posts: 36

  • Since: 2002/10/29


Yeah, i've tried multiple users that don't have admin rights - they are simply registered users. And still all the options to modify everything is displayed. I really love the module - it is fantastic except for this. It's the only thing that's keeping my site from going live.

14
taokrieger
Re: Can't change 'Xoopsgallery's Album Permissions' as admin
  • 2004/1/25 4:52

  • taokrieger

  • Just popping in

  • Posts: 36

  • Since: 2002/10/29


AAAAAAh. If the user has any admin ability (regardless of module) then they get full access. All my registered users have admin access to the Poll module (so they can create polls). Since they were admins for Polls, the xoopsgallery module treated them as an admin too. Once I removed their admin ability completely, the xoopsgallery functions fine.

This doesn't seem right - it should be checking that they are admins for this module - but it will work in the meantime. If anyone has a clue how to fix this correctly, I'd be much ablidged.

Thanks

15
SirTanksAlot
Re: Can't change 'Xoopsgallery's Album Permissions' as admin

Can you post this on the XoopsGallery bug tracker (http://xoopsgallery.org/modules/mantis/main_page.php)? And we will try to take a look at it.

16
taokrieger
Re: Can't change 'Xoopsgallery's Album Permissions' as admin
  • 2004/1/25 20:14

  • taokrieger

  • Just popping in

  • Posts: 36

  • Since: 2002/10/29


I just did. thanks

17
SirTanksAlot
Re: Can't change 'Xoopsgallery's Album Permissions' as admin

A replacment user.php has been uploaded onto the bug report. This replaces the file XoopsGallery/classes/xoops2/user.php

Or you can make the rather simple change to the file by hand.

was (in 2 places):
$this->isAdmin = (!$user->isAdmin()) ? 0 : 1;

needs to be:
$this->isAdmin = (!$user->isAdmin($GLOBALS['xoopsModule']->getVar('mid'))) ? 0 : 1;

This checks to see if the current XoopsUser/Member is an admin of the specific current module (XG)

18
taokrieger
Re: Can't change 'Xoopsgallery's Album Permissions' as admin
  • 2004/1/26 1:57

  • taokrieger

  • Just popping in

  • Posts: 36

  • Since: 2002/10/29


I believe in the second instance, it actually needs to read:

$this->isAdmin = (!$user[0]->isAdmin($GLOBALS['xoopsModule']->getVar('mid'))) ? 0 : 1;

But now it works perfectly. Thanks!!

19
drummond
Re: Can't change 'Xoopsgallery's Album Permissions' as admin
  • 2005/6/29 22:45

  • drummond

  • Just popping in

  • Posts: 36

  • Since: 2004/6/19


I am also getting this error when clicking on an image's properties:

Error 127 getting EXIF data

I deleted everything on the exe path config in the admin section, but it keeps coming up.

How to I keep this error message from appearing?

Login

Who's Online

264 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 264


more...

Donat-O-Meter

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

Latest GitHub Commits