fix(registry): align registry integrations with updated auth, storage, repository, and audit models
This commit is contained in:
@@ -99,6 +99,16 @@ export class RepositoryPermission extends plugins.smartdata.SmartDataDbDoc<Repos
|
||||
return perm;
|
||||
}
|
||||
|
||||
/**
|
||||
* Find permission for a user on a repository (alias for getUserPermission)
|
||||
*/
|
||||
public static async findPermission(
|
||||
repositoryId: string,
|
||||
userId: string
|
||||
): Promise<RepositoryPermission | null> {
|
||||
return await RepositoryPermission.getUserPermission(repositoryId, userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user's direct permission on repository
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user