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 2612725beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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)
) {