Authorable
protocol Authorable
Types that may author content as a privileged account via postAsUser.
-
Privileged username to author as, or nil/“self”/the caller’s own username for the caller.
Declaration
Swift
var postAsUser: String? { get } -
effectiveAuthor(on:Default implementationfor: ) Resolves the author for this request, enforcing the rules for the content type.
Default Implementation
Declaration
Swift
func effectiveAuthor(on req: Request, for content: AuthorableContentType) throws -> UserCacheData
View on GitHub