protected canEditMedia ( string $type = 'media' ) : boolean | ||
$type | string | |
return | boolean | True if the media action is allowed |
protected function canEditMedia($type = 'media')
{
if (!$this->authorizeTask('edit media', ['admin.' . $type, 'admin.super'])) {
return false;
}
return true;
}