channel delegation

This commit is contained in:
friendica
2015-03-10 02:23:14 -07:00
parent 4237e8052e
commit 98dffd77ef
8 changed files with 117 additions and 23 deletions

View File

@@ -13,7 +13,7 @@
function admin_post(&$a){
logger('admin_post', LOGGER_DEBUG);
if(!is_site_admin()) {
if((!is_site_admin()) || ($_SESSION['delegate'])) {
return;
}
@@ -79,7 +79,8 @@ function admin_post(&$a){
function admin_content(&$a) {
logger('admin_content', LOGGER_DEBUG);
if(!is_site_admin()) {
if((!is_site_admin()) || ($_SESSION['delegate'])) {
return login(false);
}