Closed danmarsden closed 2 years ago
Many sites will change the name of their roles - or use different roles completely - you should be checking capabilities, not roles.
hard-coded use of role shortnames is a blocker for plugins db approval.
I still see at least one instance of the "student" role shortname being hard-coded in the lib/frontpage_block.php file.
Many sites will change the name of their roles - or use different roles completely - you should be checking capabilities, not roles.
hard-coded use of role shortnames is a blocker for plugins db approval.