Restricts access to the decorated class or method. @Authorized() — any authenticated user (authorized === null) @Authorized('admin') — must have 'admin' role @Authorized(['a', 'b']) — must have 'a' or 'b' role Last-write-wins on the same target.
Restricts access to the decorated class or method. @Authorized() — any authenticated user (authorized === null) @Authorized('admin') — must have 'admin' role @Authorized(['a', 'b']) — must have 'a' or 'b' role Last-write-wins on the same target.
Restricts access to the decorated class or method. @Authorized() — any authenticated user (authorized === null) @Authorized('admin') — must have 'admin' role @Authorized(['a', 'b']) — must have 'a' or 'b' role Last-write-wins on the same target.