We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb4c754 commit fe9faf1Copy full SHA for fe9faf1
src/custom/permissions.tsx
@@ -48,7 +48,7 @@ export const createCanShow = (
48
const hasKey = Key?.subject ? CAN(Key?.action, Key?.subject) : true;
49
const predicateRes = predicate && predicate(getCapabilitiesRegistry());
50
51
- const can = predicateRes ? predicateRes[0] && hasKey : hasKey && false;
+ const can = predicateRes ? predicateRes[0] && hasKey : hasKey;
52
53
const reason = predicateRes?.[1] || {
54
type: 'MISSING_PERMISSION',
0 commit comments