Media assignment auth fails when not a super admin

Bug #1328216 reported by Dan Garner
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Undecided
Dan Garner

Bug Description

Hi, Dan

I am testing 1.6.1 today.

I logged in as super admin, and created a layout, only one region with one text media.
Then I created a user named designer_1 in users group.
Then I give the layout, region, and timeline view and edit permissions to users group.

I logged in as designer_1, I can change the region size, but if I select edit timeline, there will be an error "500 - Internal server error"

the error msg is:

<errormsg>Undefined variable: db</errormsg>
<errornum>8</errornum>
<errortype>Notice</errortype>
<scriptname>E:\Signage\wwwroot\c\90200001304\modules\module_user_general.php</scriptname>
<scriptlinenum>773</scriptlinenum>

I also tried to unassign and reassign the layout of users group.
and tried to clear the cache.
and the installation is new.

Do you have any idea?

Thanks.
Jianjian

Tags: cms

Related branches

Revision history for this message
Dan Garner (dangarner) wrote :

modules/module_user_general.php

change Line 773 to:

$SQL = sprintf($SQL, $this->db->escape_string($mediaId), $this->db->escape_string($regionId), $layoutId, implode(',', $this->GetUserGroups($this->userid, true)));

Changed in xibo:
milestone: none → 1.6.2
assignee: nobody → Dan Garner (dangarner)
tags: added: cms
Changed in xibo:
status: New → Fix Committed
Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.