-
Hi,
I'm trying to user multi-role authorization with cancan.
In development mode everything is perfect! A typical user can have both 'normal' and 'moderator' roles which each has defined permissions…
pamit updated
9 years ago
-
Supervisor-in-current-season can read emails of members of their own teams only.
However, guarding the access to hidden emails is done via cancancan view helpers.
QUESTION:
I am not sure if we s…
-
### Steps to reproduce
Granting read permission on a subset of STI subclass doesn't lead to relevant records being returned by `accessible_by`. With the following STI hierarchy:
```ruby
class Veh…
-
Use a roles framework such as https://github.com/ryanb/cancan to set (possibly mutually exclusive) role(s) for a user. This will make https://github.com/ywwg/ffagc/issues/62 easier.
Katee updated
7 years ago
-
When i use load_and_authorize_resource in rails 5.2.3. I received an error like "undefined method `before_filter' for ProductsController"
I hope you or your team will solve it in the next version a…
-
I'm having an issue setting up an ability that looks like this:
```
can :read, Project, :allocate_to => user.id
```
The problem is
```
ability.can?(:read, my_project)
```
returns false even though…
-
Direct players to player section
Coaches to coaches section
Admin section
-
Hi
I have a polymorphic relationship in AR class Client like so: belongs_to :monitorable, :polymorphic=>true
In release 1.6.8 this works
can :manage, Client, {:monitorable=>{:person_people=>{:targe…
-
Hi,
I have an ability defined like so:
can :manage, AssignedTask, :task => {:job => {:franchise_id => user.franchise_id}}
My models define that the AssignedTask belongs to a Task which belongs to…
-
I was trying to define permissions for an administrator role like this:
```
can :manage, :all
cannot :propose_with_code, SubjectCode, ["subject_codes.department_id NOT IN (select id from departments …