rgsoc-teams
rgsoc-teams copied to clipboard
Restrict access to conference controller actions
As mentioned in #829, restrict the access to the conferences#new
(and related create
etc.) actions to those users who have the ability to do this. Use cancancan
to ensure this on the controller level.
Hey @juuh42dias & @branquinhoaa, I think we totally forgot this one (it was a follow up for PR #829 ) - can you please check if this is still valid and then take care of it? It should only be a tiny task :v:
Ok @klappradla. We will take care of this.
@klappradla current ability:
can :crud, Conference if user.admin? || user.current_student?
That's right?
Yep, as far as I remember you changed it to this yourself @juuh42dias ✌️
@klappradla "...changed it to this yourself" '-' Sorry, I don't understand
😹 no worries. Just wanted to confirm: yes, that's the current ability and it should be right.
:+1: