slow progress on sys publishing, making sure all the data we need is in the places we need it but validate it anyway
This commit is contained in:
+1
-1
@@ -2024,7 +2024,7 @@ function design_tools() {
|
||||
|
||||
$channel = get_app()->get_channel();
|
||||
|
||||
if(array_key_exists('sys',$_REQUEST) && $_REQUEST['sys'] == 1 && is_site_admin()) {
|
||||
if(get_app()->is_sys && is_site_admin()) {
|
||||
require_once('include/identity.php');
|
||||
$channel = get_sys_channel();
|
||||
}
|
||||
|
||||
+1
-1
@@ -585,7 +585,7 @@ function widget_design_tools($arr) {
|
||||
// otherwise local_user() is sufficient for permissions.
|
||||
|
||||
if($a->profile['profile_uid'])
|
||||
if($a->profile['profile_uid'] != local_user())
|
||||
if(($a->profile['profile_uid'] != local_user()) && (! $a->is_sys))
|
||||
return '';
|
||||
|
||||
if(! local_user())
|
||||
|
||||
Reference in New Issue
Block a user