diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-29 16:25:27 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-29 16:25:27 -0700 |
commit | fd915138322b920036a2a21c56fdfb6a56749303 (patch) | |
tree | 4a2db27ad854ed0751e2db9e9afd56310537361a /Zotlabs | |
parent | 4fcfcc81172ebdfa4a27d3bca94bffe97356f600 (diff) | |
download | volse-hubzilla-fd915138322b920036a2a21c56fdfb6a56749303.tar.gz volse-hubzilla-fd915138322b920036a2a21c56fdfb6a56749303.tar.bz2 volse-hubzilla-fd915138322b920036a2a21c56fdfb6a56749303.zip |
more deprecate server_role
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Editpost.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Editpost.php b/Zotlabs/Module/Editpost.php index 629bdd3fd..a54c42e7f 100644 --- a/Zotlabs/Module/Editpost.php +++ b/Zotlabs/Module/Editpost.php @@ -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'); } |