mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3745] Updates for doc review (#4291)
* [ADF-3745] Updates for doc review * [ADF-3745] Fixed bad links to Content node selector page * [ADF-3745] Updated index files
This commit is contained in:
committed by
Eugenio Romano
parent
581a0c5177
commit
1079361c2c
@@ -35,6 +35,7 @@ export class IconComponent {
|
||||
private _value = '';
|
||||
private _isCustom = false;
|
||||
|
||||
/** Theme color palette for the component. */
|
||||
@Input()
|
||||
color: ThemePalette;
|
||||
|
||||
|
@@ -31,7 +31,7 @@ export class LoginDialogService {
|
||||
|
||||
/**
|
||||
* Opens a dialog to choose a file to upload.
|
||||
* @param action Name of the action to show in the title
|
||||
* @param actionName Name of the action to show in the title
|
||||
* @param title Title for the dialog
|
||||
* @returns Information about the chosen file(s)
|
||||
*/
|
||||
|
@@ -302,6 +302,12 @@ export class IdentityUserService {
|
||||
return hasAnyRole;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a user has one of the roles from a list.
|
||||
* @param userId ID of the target user
|
||||
* @param roleNames Array of roles to check for
|
||||
* @returns True if the user has one of the roles, false otherwise
|
||||
*/
|
||||
checkUserHasRole(userId: string, roleNames: string[]): Observable<boolean> {
|
||||
return this.getUserRoles(userId).pipe(map((userRoles: IdentityRoleModel[]) => {
|
||||
let hasRole = false;
|
||||
|
Reference in New Issue
Block a user