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

User Role Restrictions #310

Merged
merged 3 commits into from
Oct 30, 2023
Merged

User Role Restrictions #310

merged 3 commits into from
Oct 30, 2023

Conversation

raul-gracia
Copy link
Contributor

Description

User Role Restricitons

Trello Card Link

https://trello.com/c/kBLYVcwH

@raul-gracia
Copy link
Contributor Author

User ROLES: second part

<%= header.with_navigation_item(text: "Applicants", href: applicants_path, active: request.path.include?('system-admin/applicants')) if current_user.has_role?(:servant) %>
<%= header.with_navigation_item(text: "Duplicates", href: duplicates_path, active: request.path.include?('system-admin/duplicates')) if current_user.has_role?(:servant) %>
<%= header.with_navigation_item(text: "Reports", href: reports_path, active: request.path.include?('/system-admin/reports')) if current_user.has_role?(:manager) %>
<%= header.with_navigation_item(text: "Dashboard", href: dashboard_path, active: request.path.include?('/system-admin/dashboard')) if current_user.has_role?(:expectator) %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be role spectator here

@raul-gracia raul-gracia merged commit ab5293b into main Oct 30, 2023
6 checks passed
@raul-gracia raul-gracia deleted the feature/role-restriction branch October 30, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants