3
0

Add data privacy request route and implementation

- Introduces new role for data-privacy-officer(Role allows user to manage data privacy requests)
- along with a new system resource for data privacy requests and its access control
- Routes as per access control to create data privacy request, list request and filter it based on their kind and status, update data privacy request status, and create/list comments on data privacy request
This commit is contained in:
Vivek Patel
2022-04-15 02:20:32 +05:30
parent de1f3a908e
commit 7cdf51adc4
44 changed files with 5544 additions and 115 deletions
@@ -342,11 +342,15 @@ func (s *Store) Query{{ .expIdentPlural }}(
{{ if .features.paging }}
// paging feature is enabled
if f.PageCursor != nil {
if tExpr, err = cursor(f.PageCursor); err != nil {
return
} else {
expr = append(expr, tExpr...)
}
{{- if .features.sorting }}
if tExpr, err = cursorWithSorting(f.PageCursor, s.{{ .api.sortableFields.fnIdent }}()); err != nil {
{{- else }}
if tExpr, err = cursor(f.PageCursor); err != nil {
{{- end }}
return
} else {
expr = append(expr, tExpr...)
}
}
{{ end }}