1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

Merge pull request #3091 from Budibase/fix/table-perms

Fixing table permissions issue
This commit is contained in:
Michael Drury 2021-10-19 16:45:41 +01:00 committed by GitHub
commit 93c0b5ddd4

View file

@ -147,6 +147,7 @@ exports.getResourcePerms = async function (ctx) {
const rolePerms = role.permissions
if (
rolePerms &&
rolePerms[resourceId] &&
(rolePerms[resourceId] === level ||
rolePerms[resourceId].indexOf(level) !== -1)
) {