ENH Use class name instead of self

This commit is contained in:
Steve Boyd 2024-06-05 16:57:21 +12:00
parent db19db5b4a
commit 6c37e8f774
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);
}
/**