Skip to content
New issue

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

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

Already on GitHub? # to your account

479 restrict standard user views #480

Merged
merged 3 commits into from
Apr 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Disallow standard users access to reports and activity pages
Janell-Huyck committed Apr 23, 2024
commit de00e7169dde30959999e8dd601c5fddf6dc625e
2 changes: 1 addition & 1 deletion app/models/ability.rb
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ def initialize(user)
can :manage, :all
when 'standard'
can :view_pdfs, ConservationRecord
can :crud, [ConservationRecord, ExternalRepairRecord, InHouseRepairRecord, ConTechRecord, StaffCode, CostReturnReport, Report, :activity]
can :crud, [ConservationRecord, ExternalRepairRecord, InHouseRepairRecord, ConTechRecord, StaffCode, CostReturnReport]
when 'read_only'
can :view_pdfs, ConservationRecord
can :read, ConservationRecord