CMS MADE SIMPLE FORGE

GBFilePicker

 

[#9355] GBFilePicker breaks "Add Pages" permission for non-Admin users

avatar
Created By: Robin (Cerulean)
Date Submitted: Wed Jul 03 01:05:21 -0400 2013

Assigned To:
Version: GBfilePicker 1.3.3
CMSMS Version: 1.11.7
Severity: Minor
Resolution: None
State: Open
Summary:
GBFilePicker breaks "Add Pages" permission for non-Admin users
Detailed Description:
When GBFilePicker is installed users not in the Admin group cannot add pages
despite the relevant permission being set. Error message is "No Access to Add
New Content". Admin users may still add pages.

Steps to reproduce:
- Install GBFilePicker
- Set permissions for Editor group (or any non-Admin group) to allow "Add Pages"
- Login as Editor and attempt to add a page

More info in forum post:
http://forum.cmsmadesimple.org/viewtopic.php?f=8&t=67107


History

Comments
avatar
Date: 2013-07-03 21:47
Posted By: Robin (Cerulean)

Update: After more investigation it seems that this issue is something that is
caused by the server environment of my hosting. I have traced it to the presence
of a custom php.ini file (even an empty php.ini triggers the issue). No php.ini,
no problem. Will post back if I find out any more information.
      
avatar
Date: 2013-07-10 18:25
Posted By: Robin (Cerulean)

More info for anyone with the same problem...

I had a php.ini file in my site root to increase the PHP settings for
upload_max_size and post_max_size. But because settings made in php.ini are not
recursive into subfolders, files inside the /admin/ subfolder were still running
under the default PHP settings. It seems that the combination of some CMSMS
files running under the custom PHP settings and some (subfoldered) files running
under the default PHP settings was the cause of the problem.

Adding a line to .htaccess in the site root can make the custom php.ini settings
apply to subfolders, and this resolved the problem for me:

SuPHP_ConfigPath /path/to/root/
      
Updates

Updated: 2013-07-03 21:47
version_id: -1 => 29955
severity_id: 2 => 3
cmsms_version_id: -1 => 30123

Updated: 2013-07-03 01:06
resolution_id: => 5
severity_id: 12 => 2