Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contextual role does not get applied #1690

Open
1 task done
davidkornel opened this issue Feb 16, 2024 · 1 comment
Open
1 task done

Contextual role does not get applied #1690

davidkornel opened this issue Feb 16, 2024 · 1 comment
Assignees
Labels
backend Backend server changes (GO)
Milestone

Comments

@davidkornel
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Version of Corteza

2023.9.2

Current Behavior

When using a role as non-contextual (common role) the applied user can do everything that is specified in the role's permissions. However, as I change the role to be contextual with expression true (just to make sure it applies) I can only partially do the previous things. To be specific I want to control who can edit a record (the owner). The +ADD button appears as excepted and if I hit the button I cannot fill the fields and also cant create a record. For me, it seems the specified field permissions doesn't get applied in the contextual role.

Expected Behavior

No response

Steps To Reproduce

No response

Environment and versions

No response

Anything else?

No response

@Fajfa Fajfa added the backend Backend server changes (GO) label Mar 1, 2024
@Fajfa Fajfa added this to the 2023.9.5 milestone Mar 1, 2024
@tjerman
Copy link
Member

tjerman commented Mar 19, 2024

Cannot reproduce.
@davidkornel please provide more detailed reproduction steps & include some screenshots.

Make sure the user in question has assigned a role with these two permissions:

Image

Without these fields, I was also unable to set the field value.

@Fajfa should we improve the UI? Currently if you can't set fields, you just see this:

Image

@Fajfa Fajfa modified the milestones: 2023.9.5, 2024.3.x Mar 20, 2024
@petergrlica petergrlica self-assigned this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend server changes (GO)
Projects
None yet
Development

No branches or pull requests

4 participants