mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: Check owner with less complex logic
This commit is contained in:
parent
16c7b2d431
commit
37a6070714
@ -77,7 +77,7 @@ class BlogHolder extends BlogTree {
|
|||||||
* @return Boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
function IsOwner() {
|
function IsOwner() {
|
||||||
return Permission::check('ADMIN') || (Member::CurrentMember() && Member::CurrentMember()->ID == $this->OwnerID);
|
return Permission::check('ADMIN') || (Member::currentUserID() == $this->OwnerID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user