GroupsControllerGetAdminPermissions - метод

Get administrative permissions that current user has for the specified group.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
[HttpGetAttribute("{id:guid}/admin-permissions")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<GroupAdminPermissions>> GetAdminPermissions(
	[FromRouteAttribute] Guid id,
	[FromQueryAttribute] bool ignoreCache = false,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
Group's identifier.
ignoreCache  Boolean  (Optional)
Whether to ignore server cache when obtaining the value. Pass true for administrative UI.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskActionResultGroupAdminPermissions
None if current user has no administrative permissions for the specified group; Limited if the user can only modify members of the group; Full if the user can modify members and administrators of the group.

См. также