Commit 9ad4298a authored by drumm's avatar drumm
Browse files

Remove redundant access check

parent 99df9126
......@@ -2367,8 +2367,6 @@ function drupalorg_issue_fork_tugboat_preview_log($preview_id) {
**/
function drupalorg_org_owner_tools($node) {
global $user;
$content = array(
'main' => array(
'#prefix' => '<div class="main">',
......@@ -2378,16 +2376,7 @@ function drupalorg_org_owner_tools($node) {
),
);
//Org partner tier progress
// Check user roles to make sure they should have access (if they aren't the node author)
$user_partner_progress_access = 0;
foreach ($user->roles as $role) {
if ($role == 'association staff') {
$user_partner_progress_access = 1;
continue;
}
}
if (!empty($node->field_organization_support) && (($node->name == $user->name) || $user_partner_progress_access)) {
if (!empty($node->field_organization_support)) {
//field_drupalorg_rank_components list
//0: weighted issue credits
//1: association partnerships
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment