1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12: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 2612725beb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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