@@ -666,7 +666,7 @@ attribute @@@deprecated(_ message: String)
666666 * @param operation: comma-separated list of "create", "read", "update", "delete". Use "all" to denote all operations.
667667 * @param condition: a boolean expression that controls if the operation should be allowed.
668668 */
669- attribute @@allow(_ operation: String @@@completionHint(["'create'" , "'read'" , "'update'" , "'delete'" , "'all'" ]), _ condition: Boolean )
669+ attribute @@allow(_ operation: String @@@completionHint(["'create'" , "'read'" , "'update'" , "'post-update'" , "' delete'" , "'all'" ]), _ condition: Boolean )
670670
671671/* *
672672 * Defines an access policy that allows the annotated field to be read or updated.
@@ -684,7 +684,7 @@ attribute @allow(_ operation: String @@@completionHint(["'create'", "'read'", "'
684684 * @param operation: comma-separated list of "create", "read", "update", "delete". Use "all" to denote all operations.
685685 * @param condition: a boolean expression that controls if the operation should be denied.
686686 */
687- attribute @@deny(_ operation: String @@@completionHint(["'create'" , "'read'" , "'update'" , "'delete'" , "'all'" ]), _ condition: Boolean )
687+ attribute @@deny(_ operation: String @@@completionHint(["'create'" , "'read'" , "'update'" , "'post-update'" , "' delete'" , "'all'" ]), _ condition: Boolean )
688688
689689/* *
690690 * Defines an access policy that denies the annotated field to be read or updated.
@@ -705,8 +705,8 @@ function check(field: Any, operation: String?): Boolean {
705705} @@@expressionContext([AccessPolicy])
706706
707707/* *
708- * Gets entities value before an update. Only valid when used in a "update" policy rule.
708+ * Gets entity's value before an update. Only valid when used in a "post- update" policy rule.
709709 */
710- function future (): Any {
710+ function before (): Any {
711711} @@@expressionContext([AccessPolicy])
712712
0 commit comments