PHP Class Mage2\User\Policies\AdminUserPolicy

Inheritance: use trait Illuminate\Auth\Access\HandlesAuthorization
显示文件 Open project: mage2/laravel-ecommerce

Public Methods

Method Description
hasPermission ( AdminUser $adminUser, $permissionName ) : mixed Determine whether the user can has permissions to access route.

Method Details

hasPermission() public method

Determine whether the user can has permissions to access route.
public hasPermission ( AdminUser $adminUser, $permissionName ) : mixed
$adminUser Mage2\User\Models\AdminUser
return mixed