Hi. Apologies for many questions lately.
We can’t understand why SearchFormDefinitions
is not available for a regular “non admin” user in SS UI.
- The DTO requires authenticated user.
Logged in: Check - The services requires the Admin role, but only for Post or Put. This is a GET.
[ValidateIsAuthenticated]
[Route("/formdefinitions", Verbs = "GET")]
public class SearchFormDefinitions : QueryDb<FormDefinition> {
// some properties
}
[Authenticate]
[RequiredRole(ApplyTo.Post | ApplyTo.Put, "Admin") ]
public class FormDefinitionServices : Service {
public FormDefinitionsResponse Get(SearchFormDefinitions request)
{
// implementation
}
}