Support Topics Documentation Slack YouTube Blog

Global custom roles are not taken into account as table level should inherit them

Are you looking for help?

This is a support forum for reporting issues related to Backendless services. Please note that due to our support policy we cannot provide you help with debugging your code, consulting in regards to any language or third-party library usage. For this kind of questions we recommend using more appropriate forums like Stack Overflow.

In order to suggest you a quality solution, we shall usually ask you to provide the details mentioned below first. Including them into your topic right away helps us to start investigating your issue much faster.

In case you have a suggestion or an idea, the details below are not always required, though still any additional background is welcome.

Backendless Version (3.x / 5.x, Online / Managed / Pro )

Online

Client SDK (REST / Android / Objective-C / Swift / JS )

JS

Application ID

8C7488E9-5871-4A47-AE5E-2E43E03B85FC

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

  1. global custom roles should be be treated if other roles are not provided, based on Security - Backendless SDK for JavaScript API Documentation

Actual Behavior

  1. I set global custom role to allow create and find

  2. the table seems to inherit it correctly

  3. the user with that role doesn’t seems to be able to perform the action although he is assigned to that role

Reproducible Test Case

  1. create a custom role
  2. assign a user to that role
  3. change that role permission matrix
  4. try to perform action like create with that user

it works only if I’m explicitly providing that role the permissions on the table level

Thanks
Eran

Hello @Eran_Sakal

That looks like Teacher role have no permission for this, in this case, if any of all role has no permission - the user has no permissions too.

Regards, Dima