Skip to content

Commit

Permalink
ENH Use class name instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 14, 2024
1 parent db19db5 commit 6c37e8f
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 6c37e8f

Please sign in to comment.