If you implement hook_perm, this will determine the permissions for this module, such as
function yourmodule_perm() {
return array('can select', 'can update', 'can delete');
}
However, the permissions themselves do not matter ... One way to control what the user can and cannot do is to user_access:
// @ some other module function
if (user_access('can delete')){
// delete stuff
} else {
drupal_access_denied();
}
In addition, when setting up your module’s menu, you hook_menucan use the hook_perm-defined permissions option :
$items['modulepath'] = array(
'title' => 'modulename',
'page callback' => 'module_function',
'access callback' => 'user_access',
'access arguments' => array('can select'),
'type' => MENU_NORMAL_ITEM,
);
Remember to configure your user access in: admin / user / permissions