From 4f69bcfc38290db87c97645e311fda7a48e1468e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 13 May 2018 14:29:09 +0200 Subject: streamline appearence of guest tokens individual perms with those in connedit --- Zotlabs/Module/Settings/Tokens.php | 6 +++--- view/tpl/field_acheckbox.tpl | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Zotlabs/Module/Settings/Tokens.php b/Zotlabs/Module/Settings/Tokens.php index bf22ec7aa..619c8b5ba 100644 --- a/Zotlabs/Module/Settings/Tokens.php +++ b/Zotlabs/Module/Settings/Tokens.php @@ -161,8 +161,8 @@ class Tokens { '$me' => t('My Settings'), '$perms' => $perms, '$inherited' => t('inherited'), - '$notself' => 0, - '$self' => 1, + '$notself' => 1, + '$self' => 0, '$permlbl' => t('Individual Permissions'), '$permnote' => t('Some permissions may be inherited from your channel\'s privacy settings, which have higher priority than individual settings. You can not change those settings here.'), '$submit' => t('Submit') @@ -170,4 +170,4 @@ class Tokens { return $o; } -} \ No newline at end of file +} diff --git a/view/tpl/field_acheckbox.tpl b/view/tpl/field_acheckbox.tpl index c87b9ac79..1810e1ee1 100755 --- a/view/tpl/field_acheckbox.tpl +++ b/view/tpl/field_acheckbox.tpl @@ -5,11 +5,12 @@ {{if $notself}} - {{if $field.2}}{{else}}{{/if}} + {{if $field.2 === 1}}{{/if}} + {{if $field.2 === 0}}{{/if}} {{/if}} - {{if $self || !$field.5 || $twocol }} + {{if $self || !$field.5 }} {{/if}} {{if $notself && $field.5}} -- cgit v1.2.3