eLearning-TUDarmstadt / moodle-tool_supporter

A support tool for Moodle
4 stars 3 forks source link

Add correct capabilites #12

Closed Nullmann closed 7 years ago

Nullmann commented 8 years ago

give different roles the permission to only read/read and write

Useful for 1st level support

Nullmann commented 8 years ago

See: https://docs.moodle.org/dev/Access_API

Nullmann commented 7 years ago

Maybe it is sufficient if there are only two contexts: read and write

spegenau commented 7 years ago

Please remember that a user needs a certain capability to do/see something and that a role is only a configurable set of capabilities.

Try to reuse the capabilities Moodle is shipped with. So that a user can see or edit what she/he can see or edit in Moodle. Try to avoid creating new capabilities. Use for example a capability like core/course:can_enrol instead of tool/supporter:usercan enrol (To avoid cloning every single core capability ;) )