function security_review_default_untrusted_roles in Security Review 6
Helper function defines the default untrusted Drupal roles.
2 calls to security_review_default_untrusted_roles()
- security_review_settings in ./
security_review.module - Module settings form.
- security_review_untrusted_roles in ./
security_review.inc - Helper function for user-defined or default unstrusted Drupal roles.
File
- ./
security_review.inc, line 795 - Stand-alone security checks and review system.
Code
function security_review_default_untrusted_roles() {
$rids = array(
DRUPAL_ANONYMOUS_RID,
);
$user_register = variable_get('user_register', 1);
if ($user_register == 1) {
$rids[] = DRUPAL_AUTHENTICATED_RID;
}
return $rids;
}