function userprotect_update_7001 in User protect 7
Grants the 'edit own account' permission to all roles.
File
- ./
userprotect.install, line 178 - Install, update and uninstall functions for the userprotect module.
Code
function userprotect_update_7001() {
$rids = array_keys(user_roles(TRUE));
foreach ($rids as $rid) {
user_role_grant_permissions($rid, array(
'edit own account',
));
}
}