more deprecate server_role

This commit is contained in:
zotlabs
2017-05-29 16:25:27 -07:00
parent 4fcfcc8117
commit fd91513832
4 changed files with 6 additions and 14 deletions

View File

@@ -39,6 +39,11 @@ class Editpost extends \Zotlabs\Web\Controller {
return;
}
if($itm[0]['resource_type'] === 'photo' && $itm[0]['resource_id']) {
notice( t('Item is not editable') . EOL);
return;
}
if($itm[0]['resource_type'] === 'event' && $itm[0]['resource_id']) {
goaway(z_root() . '/events/' . $itm[0]['resource_id'] . '?expandform=1');
}