Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 09:31 pm EST

Geeklog Forums

Geeklog 1.3.7 and Gallery 1.3.2


Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
Something must have changed between Geeklog 1.3.6 and 1.3.7 that is breaking the integration with Gallery 1.3.2 I have one site with Geeklog 1.3.6 and Gallery 1.3.2. The integration works as expected. "Root" users are granted all rights and specific Geeklog users are granted specified access. Using the same integration instructions with Geeklog 1.3.7, the users are not recognized. Ideas?
 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
OK, I've been able to get a little closer to what is happening -- or at least what is NOT happening. The Geeklog-Gallery intergration creates a [user] => geeklog_user Object This includes the variable [isAdmin] Using the same exact Gallery integration code in gallery/classes/geeklog/ and using the same init.php Geeklog 1.3.6 correctly identifies the user as isAdmin Geeklog 1.3.7 fails to identify the same user as isAdmin Were changes made to SEC_inGroup('Root', '$uid'); that might be causes the failure to identify Root users?
 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
In the gallery/classes/geeklog/user.php find the two lines with $this->isAdmin = SEC_inGroup('Root', '$uid'); and change them to $this->isAdmin = SEC_inGroup('Root'); This will enable Gallery to test for Root user under Geeklog 1.3.7 changes to lib-security.php. No changes to lib-security.php are necessary and no other changes to the Gallery intergration files are required. Thanks, Dirk, for getting me pointed back int he right direction.
 Quote

All times are EST. The time is now 09:31 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content