I was learning capabilities so i made a quick block to test it.
i placed in the access.php :
'block/hello_cap:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
'user' => CAP_PREVENT
I expected that the "user" can not be see this block,i added to the dashboard to all users by admin(site administration/appereance/Default Dashboard page) to see if it working.
I checked the permission:
I expected that my plugin capability will be higher priority so the user can not see the block.
But this is not right. Is this a bug or i missed something?