Merge pull request #761 from creative-commoners/pulls/4.2/remove-self

ENH Use class name instead of self
This commit is contained in:
Guy Sartorelli 2024-06-17 11:58:12 +12:00 committed by GitHub
commit af640bb8d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -234,6 +234,6 @@ class GridFieldAddByDBField implements GridField_ActionProvider, GridField_HTMLP
$forTemplate->Fields->push($textField);
$forTemplate->Fields->push($addAction);
return [$this->targetFragment => $forTemplate->renderWith(self::class)];
return [$this->targetFragment => $forTemplate->renderWith(GridFieldAddByDBField::class)];
}
}

View File

@ -475,7 +475,7 @@ class Blog extends Page implements PermissionProvider
return $extended;
}
return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}
/**
@ -499,7 +499,7 @@ class Blog extends Page implements PermissionProvider
return true;
}
return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}
/**
@ -523,7 +523,7 @@ class Blog extends Page implements PermissionProvider
return true;
}
return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}
/**