aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-01 22:46:35 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-01 22:46:35 +0200
commit7c845aafa20ed483d29aa9d71b23922d8850824e (patch)
treec80836e0eff43580cd46c5f91fbdeb9880f2c102 /Zotlabs/Module
parent89457c8390fdfad1a9d687ade1c1685ab3e1c614 (diff)
downloadvolse-hubzilla-7c845aafa20ed483d29aa9d71b23922d8850824e.tar.gz
volse-hubzilla-7c845aafa20ed483d29aa9d71b23922d8850824e.tar.bz2
volse-hubzilla-7c845aafa20ed483d29aa9d71b23922d8850824e.zip
card_edit: fix lockstate and current permissions not handed over to editor
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Card_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Module/Card_edit.php b/Zotlabs/Module/Card_edit.php
index 6927c0b6f..7cc563fd2 100644
--- a/Zotlabs/Module/Card_edit.php
+++ b/Zotlabs/Module/Card_edit.php
@@ -105,6 +105,8 @@ class Card_edit extends \Zotlabs\Web\Controller {
'hide_expire' => false,
'showacl' => true,
'acl' => populate_acl($itm[0],false,\Zotlabs\Lib\PermissionDescription::fromGlobalPermission('view_pages')),
+ 'permissions' => $itm[0],
+ 'lockstate' => (($itm[0]['allow_cid'] || $itm[0]['allow_gid'] || $itm[0]['deny_cid'] || $itm[0]['deny_gid']) ? 'lock' : 'unlock'),
'ptyp' => $itm[0]['type'],
'mimeselect' => false,
'mimetype' => $itm[0]['mimetype'],