CMTV
Well-known member
Hi!
I wonder why some
Which way of writing my custom
I wonder why some
can...()
methods do check existence of user ID and some do not in User entity class?
PHP:
public function canViewWarnings()
{
return ($this->user_id && $this->hasPermission('general', 'viewWarning'));
}
PHP:
public function canViewMemberList()
{
return $this->hasPermission('general', 'viewMemberList');
}
Which way of writing my custom
can...()
methods should I stick with?