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
1 changed files with 1 additions and 0 deletions

View File

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