Skip to content

Commit

Permalink
Merge pull request #761 from creative-commoners/pulls/4.2/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 16, 2024
2 parents db19db5 + 6c37e8f commit af640bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Forms/GridField/GridFieldAddByDBField.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,6 @@ public function getHTMLFragments($gridField)
$forTemplate->Fields->push($textField);
$forTemplate->Fields->push($addAction);

return [$this->targetFragment => $forTemplate->renderWith(self::class)];
return [$this->targetFragment => $forTemplate->renderWith(GridFieldAddByDBField::class)];
}
}
6 changes: 3 additions & 3 deletions src/Model/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public function canEditEditors($member = null)
return $extended;
}

return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}

/**
Expand All @@ -499,7 +499,7 @@ public function canEditWriters($member = null)
return true;
}

return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}

/**
Expand All @@ -523,7 +523,7 @@ public function canEditContributors($member = null)
return true;
}

return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}

/**
Expand Down

0 comments on commit af640bb

Please sign in to comment.