You are here

function security_review_untrusted_roles in Security Review 7

Same name and namespace in other branches
  1. 6 security_review.inc \security_review_untrusted_roles()

Helper function for user-defined or default unstrusted Drupal roles.

Return value

An associative array with the role id as the key and the role name as value.

5 calls to security_review_untrusted_roles()
security_review_check_admin_permissions in ./security_review.inc
Look for admin permissions granted to untrusted roles.
security_review_check_input_formats in ./security_review.inc
Check for formats that either do not have HTML filter that can be used by untrusted users, or if they do check if unsafe tags are allowed.
security_review_check_php_filter in ./security_review.inc
security_review_trusted_roles in ./security_review.inc
Helper function for assumed trusted roles.
security_review_untrusted_permissions in ./security_review.inc
Helper function collects the permissions untrusted roles have.
2 string references to 'security_review_untrusted_roles'
security_review_settings in ./security_review.pages.inc
Module settings form.
security_review_uninstall in ./security_review.install
Implements hook_uninstall().

File

./security_review.inc, line 863
Stand-alone security checks and review system.

Code

function security_review_untrusted_roles() {
  $defaults = _security_review_default_untrusted_roles();
  $roles = variable_get('security_review_untrusted_roles', $defaults);

  // array_filter() to remove roles with 0 (meaning they are trusted) @todo
  return array_filter($roles);
}