Stuff that should probably get documented at some point.
Write permissions allow users to update the data of a file.
- Let asn be the file's ASN
- Let asn write roles be the
writeroles configured in the configuration corresponding to the asn's folder. - Let user roles be the user's roles
- If the asn write roles include one or more roles from the user roles
- Return
true
- Return
- If the file's additional
writeroles include one or more roles from the user roles- Return
true
- Return
- Return
false
Read permissions allow users to see files without updating them.
- Let asn be the file's ASN
- Let asn read roles be the
readroles configured in the configuration corresponding to the asn's folder. - Let user roles be the user's roles
- If user has write permissions for file
- Return
true
- Return
- If the file's
tagsinclude one or more of thepublicTagsconfigured in the configuration- Return
true
- Return
- If the asn read roles include one or more roles from the user roles
- Return
true
- Return
- If the file's additional
readroles include one or more roles from the user roles- Return
true
- Return
- Return
false