Browse Source
Merge pull request #3091 from Budibase/fix/table-perms
Fixing table permissions issue
master
Michael Drury
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
packages/server/src/api/controllers/permission.js
|
|
|
@ -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) |
|
|
|
) { |
|
|
|
|