protected function getPermissionsByUser(User\UserInterface $user)
	{
		// get the user's direct permissions
		$userPerms = $this->userObjectPermission->findByUser($user);
		
		// get the permissions associated to the user's groups
		$groupPerms = $this->groupObjectPermission->findByGroups($user->getGroups());
		
		// merge the two results and return
		return $userPerms->merge($groupPerms);
	}