Fix permission check
This commit is contained in:
parent
c6e70e27a1
commit
d4e26f3914
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class LinkFooter extends React.PureComponent {
|
||||||
const { signedIn, permissions } = this.context.identity;
|
const { signedIn, permissions } = this.context.identity;
|
||||||
|
|
||||||
const canInvite = signedIn && ((permissions & PERMISSION_INVITE_USERS) === PERMISSION_INVITE_USERS);
|
const canInvite = signedIn && ((permissions & PERMISSION_INVITE_USERS) === PERMISSION_INVITE_USERS);
|
||||||
const canViewVersion = signedIn && ((permissions & PERMISSION_ADMINISTRATOR) === PERMISSION_INVITE_USERS);
|
const canViewVersion = signedIn && ((permissions & PERMISSION_ADMINISTRATOR) === PERMISSION_ADMINISTRATOR);
|
||||||
const canProfileDirectory = profileDirectory;
|
const canProfileDirectory = profileDirectory;
|
||||||
|
|
||||||
const DividingCircle = <span aria-hidden>{' · '}</span>;
|
const DividingCircle = <span aria-hidden>{' · '}</span>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue