/// <summary> /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="RepositoryRights"/> /// </summary> /// <param name="requiredRights">The rights required</param> public TgsAuthorizeAttribute(RepositoryRights requiredRights) { Roles = RightsHelper.RoleNames(requiredRights); RightsType = Api.Rights.RightsType.Repository; }
/// <summary> /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="RepositoryRights"/> /// </summary> /// <param name="requiredRights">The rights required</param> public TgsAuthorizeAttribute(RepositoryRights requiredRights) { Roles = RightsHelper.RoleNames(requiredRights); }