Created
September 10, 2021 03:41
-
-
Save minhntm/df49c2db8d6d98c68594299b26415a6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable() | |
export class AuthzService { | |
constructor( | |
@InjectRepository(UserRepository) | |
private userRepository: UserRepository, | |
) {} | |
async findAllPermissionsOfUser(user: User): Promise<Permission[]> { | |
return await this.userRepository.findAllPermissions(user); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment