Welcome to Geeklog Wednesday, June 19 2019 @ 12:46 pm EDT

Geeklog Forums

inmemoriam 0.9.0 bug


Status: offline

machinari

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

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.

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/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:
PHP Formatted Code
        if ($A['allow_submit'] == '0' && !SEC_hasRights('inmemoriam.admin')){

 
and replace it with this:
PHP 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.

Status: offline

Robin

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

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

All times are EDT. The time is now 12:46 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