BlackCatDevelopment / BlackCatCMS

BlackCat CMS is a PHP5, HTML5 content management system
https://blackcat-cms.org
Other
11 stars 9 forks source link

v1.1.3: Too many permissions #332

Closed webbird closed 8 years ago

webbird commented 8 years ago

If a user (=a group) has page editing permissions, some global settings like "Maintenance mode" are accessible (and can be saved!) in addition.

webbird commented 8 years ago

Reason is that settings, settings_basic and settings_advanced have bit 0 as value. In this case, the check_permission() method always returns true. So for a quick fix set the bits in the system_permissions table to

settings -> 1 settings_basic -> 2 settings_advanced -> 4

I'm not sure if we really check basic and advanced.