mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
show star on all lab nodes
This commit is contained in:
parent
1eb6c9c29d
commit
02c4f61e83
1 changed files with 1 additions and 1 deletions
|
@ -27,6 +27,6 @@ export const canStarNode = (
|
|||
node?: Partial<INode>,
|
||||
user?: Partial<IUser>,
|
||||
): boolean =>
|
||||
(path(['type'], node) === NODE_TYPES.IMAGE || !node?.is_public) &&
|
||||
(path(['type'], node) === NODE_TYPES.IMAGE || !node?.is_promoted) &&
|
||||
path(['is_promoted'], node) === true &&
|
||||
path(['role'], user) === Role.Admin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue