Skip to content

Teachers. I mean who are they really? #28

@btbonval

Description

@btbonval

@stephskardal helped us clean up the CanCan Ability file.

There were some pieces that were super hard to read, notably in the teacher section.

cannot :manage, Document do |tors|
if tors.user.nil? # This has been driving me insane.
false
else
tors.user.id == user.id
end
end

For now, we removed the ugly unreadable code. However, we should probably find out from the upstream project what the intended permissions for teachers is supposed to be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions