Skip to content

Commit 600d13b

Browse files
authored
chore: improve documentation of @@auth attribute (#797)
1 parent 10f2b68 commit 600d13b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/schema/src/res/stdlib.zmodel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ attribute @@deny(_ operation: String, _ condition: Boolean)
377377
attribute @deny(_ operation: String, _ condition: Boolean)
378378

379379
/**
380-
* Defines the model to use when when checking access policies.
380+
* Used to specify the model for resolving `auth()` function call in access policies. A Zmodel
381+
* can have at most one model with this attribute. By default, the model named "User" is used.
381382
*/
382383
attribute @@auth()
383384

0 commit comments

Comments
 (0)