Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 02:46 am EDT

Geeklog Forums

inmemoriam 0.9.0 bug


Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Here is a bug that I am WAY surprised nobody has mentioned. Embarassed

A user, without admin rights, but having permission to create an album, creates an album, but cannot add media to it. That's just wrong! I don't know how I missed it.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
If it makes a difference to you, here is how to fix it:
find line 109 in media.php, which should look like this:
Text Formatted Code
        if ($A['allow_submit'] == '0' && !SEC_hasRights('inmemoriam.admin')){

 
and replace it with this:
Text Formatted Code
        if (SEC_hasRights('inmemoriam.admin')){
            //allow
        } elseif ($A['allow_submit'] == '0' && $_USER['uid'] != $A['owner_id']) {

 
I just cant believe that in 700 downloads, nobody saw this issue. Shocked
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by machinari:I just cant believe that in 700 downloads, nobody saw this issue. Shocked

Well I'm one of them but I haven't upgraded 0.8.5 yet Wink
Geeklog Polish Support Team
 Quote

All times are EDT. The time is now 02:46 am.

  • 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