namespace BookStack\Users\Controllers;
use BookStack\Http\Controller;
+use BookStack\Permissions\Permission;
use BookStack\Users\Models\User;
use Illuminate\Http\Request;
public function forSelect(Request $request)
{
$hasPermission = !user()->isGuest() && (
- userCan(\BookStack\Permissions\Permission::UsersManage)
- || userCan(\BookStack\Permissions\Permission::RestrictionsManageOwn)
- || userCan(\BookStack\Permissions\Permission::RestrictionsManageAll)
+ userCan(Permission::UsersManage)
+ || userCan(Permission::RestrictionsManageOwn)
+ || userCan(Permission::RestrictionsManageAll)
);
if (!$hasPermission) {