Post: tweak permissions to match designs

This commit is contained in:
Liam Fitzgerald 2021-04-02 12:11:24 +10:00
parent 578924049d
commit f2a7617376
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB
3 changed files with 8 additions and 7 deletions

View File

@ -6,13 +6,11 @@
++ graph-permissions-add
|= vip=vip-metadata:met
^- permissions:graph
?+ vip [%yes %yes %yes]
%admin-feed [%yes %yes %no]
%host-feed [%no %no %no]
%reader-comments
?: ?=([@ ~] index.p.i)
[%yes %yes %no]
?. ?=([@ ~] index.p.i)
[%yes %yes %yes]
?+ vip [%yes %yes %yes]
%admin-feed [%yes %no %no]
%host-feed [%no %no %no]
==
::
++ graph-permissions-remove

View File

@ -33,7 +33,7 @@ export function GroupFeedPermsInput(
name={id}
id="admin-feed"
label="Host & Admins Only"
caption="Only Hosts and Admins can post and edit this feed"
caption="Only Hosts and Admins can post this feed. Everyone else may comment"
/>
</Col>
);

View File

@ -14,6 +14,9 @@ function canWrite(props) {
if (vip === '') {
return true;
}
if(index) {
return true;
}
if(vip === 'admin-feed') {
return isChannelAdmin(group, association.group);