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

Add permission to allow or block editing contacts in webapp #8867

Open
dianabarsan opened this issue Feb 13, 2024 · 0 comments
Open

Add permission to allow or block editing contacts in webapp #8867

dianabarsan opened this issue Feb 13, 2024 · 0 comments
Labels
Type: Improvement Make something better

Comments

@dianabarsan
Copy link
Member

What feature do you want to improve?
There is no way to block showing the edit button on contact detail pages, apart from blocking all writes by removing the can_edit permission.

For reports, we have a specific permission can_update_reports that gets checked along with can_edit in webapp actionbar.

<a class="mm-icon mm-icon-inverse mm-icon-caption" *ngIf="actionBar?.right?.type === 'xml'" mmAuth="can_edit,can_update_reports" [routerLink]="['/reports', 'edit', selectedReportDoc?._id]">

Describe the improvement you'd like
Add a can_edit_contacts permission, to mirror can_update_reports.

Describe alternatives you've considered
We could fine-tune this and somehow check individually for each contact, possibly by adding permissions to contact edit forms?

Additional context
Forum request

@dianabarsan dianabarsan added the Type: Improvement Make something better label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Make something better
Projects
None yet
Development

No branches or pull requests

1 participant