mirror of
https://github.com/ent/ent.git
synced 2026-04-30 14:40:57 +03:00
17 lines
255 B
Markdown
17 lines
255 B
Markdown
# Privacy Admin Only Example
|
|
|
|
An example for an application that allows any user to read any data,
|
|
but accepts mutations only from viewers with admin role.
|
|
|
|
### Generate Assets
|
|
|
|
```console
|
|
go generate ./...
|
|
```
|
|
|
|
### Run Example
|
|
|
|
```console
|
|
go test
|
|
```
|