mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #761 from creative-commoners/pulls/4.2/remove-self
ENH Use class name instead of self
This commit is contained in:
commit
af640bb8d7
@ -234,6 +234,6 @@ class GridFieldAddByDBField implements GridField_ActionProvider, GridField_HTMLP
|
|||||||
$forTemplate->Fields->push($textField);
|
$forTemplate->Fields->push($textField);
|
||||||
$forTemplate->Fields->push($addAction);
|
$forTemplate->Fields->push($addAction);
|
||||||
|
|
||||||
return [$this->targetFragment => $forTemplate->renderWith(self::class)];
|
return [$this->targetFragment => $forTemplate->renderWith(GridFieldAddByDBField::class)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -475,7 +475,7 @@ class Blog extends Page implements PermissionProvider
|
|||||||
return $extended;
|
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 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 true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Permission::checkMember($member, self::MANAGE_USERS);
|
return Permission::checkMember($member, Blog::MANAGE_USERS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user