Skip to content

Commit

Permalink
checking permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pallavimshr committed Jun 20, 2024
1 parent 190fcce commit a854e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion studio/src/components/Selector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Selector({
}) {
const entity = action.toLowerCase();
const spaces = useSelector(({ spaces }) => spaces);
const actions = getUserPermission({ resources: ['categories', 'tags'], action: 'create', spaces });
const actions = getUserPermission({ resource: createEntity, action: 'create', spaces });

const selectorType = require(`../../actions/${entity}`);
const [entityCreatedFlag, setEntityCreatedFlag] = React.useState(false);
Expand Down

0 comments on commit a854e10

Please sign in to comment.