Skip to content

Commit fe9faf1

Browse files
committed
fix: remove hardcoded false
Signed-off-by: codeSafari10 <codeSafari10@gmail.com>
1 parent eb4c754 commit fe9faf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/custom/permissions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const createCanShow = (
4848
const hasKey = Key?.subject ? CAN(Key?.action, Key?.subject) : true;
4949
const predicateRes = predicate && predicate(getCapabilitiesRegistry());
5050

51-
const can = predicateRes ? predicateRes[0] && hasKey : hasKey && false;
51+
const can = predicateRes ? predicateRes[0] && hasKey : hasKey;
5252

5353
const reason = predicateRes?.[1] || {
5454
type: 'MISSING_PERMISSION',

0 commit comments

Comments
 (0)