diff options
author | Russ Allbery <rra@stanford.edu> | 2006-09-13 23:59:49 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2006-09-13 23:59:49 +0000 |
commit | bd09750403e0f0ed7add2b9198fb7cb74f0aeb34 (patch) | |
tree | bf0f1046af4f4c87006bbdb7468dc9b258cad8e3 /doc | |
parent | 34bd4abba82885bb74361d8af0ac6bb7e708c498 (diff) |
Add the default_check() call to check a principal against the default ACL
for a particular object type.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/design-api | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/design-api b/doc/design-api index 39d160b..0af6862 100644 --- a/doc/design-api +++ b/doc/design-api @@ -61,6 +61,19 @@ Object API display, or undef on error. On error, the caller should call error() to get the error text. + default_check(PRINCIPAL) + + Applies the default authorization rules for this object type, if any, + and returns 1 if those default authorization rules allow access. If + there are no authorization rules or if they don't allow access, + returns 0. On error, returns undef; the caller should call error() to + get the error text. + + error() + + Returns the error text from the last failed get(), store(), show(), or + default_check() call. + ACL API new() |