rgsoc-teams icon indicating copy to clipboard operation
rgsoc-teams copied to clipboard

Restrict access to conference controller actions

Open klappradla opened this issue 7 years ago • 7 comments

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.

klappradla avatar Aug 26 '17 10:08 klappradla

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:

klappradla avatar Sep 12 '17 08:09 klappradla

Ok @klappradla. We will take care of this.

branquinhoaa avatar Sep 12 '17 16:09 branquinhoaa

@klappradla current ability:

can :crud, Conference if user.admin? || user.current_student?

That's right?

juuh42dias avatar Sep 12 '17 16:09 juuh42dias

Yep, as far as I remember you changed it to this yourself @juuh42dias ✌️

klappradla avatar Sep 12 '17 18:09 klappradla

@klappradla "...changed it to this yourself" '-' Sorry, I don't understand

juuh42dias avatar Sep 12 '17 18:09 juuh42dias

😹 no worries. Just wanted to confirm: yes, that's the current ability and it should be right.

klappradla avatar Sep 12 '17 18:09 klappradla

:+1:

juuh42dias avatar Sep 12 '17 18:09 juuh42dias