mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
Post: tweak permissions to match designs
This commit is contained in:
parent
578924049d
commit
f2a7617376
@ -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
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -14,6 +14,9 @@ function canWrite(props) {
|
||||
if (vip === '') {
|
||||
return true;
|
||||
}
|
||||
if(index) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(vip === 'admin-feed') {
|
||||
return isChannelAdmin(group, association.group);
|
||||
|
Loading…
Reference in New Issue
Block a user