snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
16
examples/privacyadmin/README.md
Normal file
16
examples/privacyadmin/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user