| title | ARC0019: Contradictory authorization |
|---|---|
| description | Fix ARC0019 in Arc TypeScript by removing contradictory anonymous access and role or authorization decorators from the same class or method. |
A class or method has both @allowAnonymous() and @roles() or @authorize(). Rule: arc-core/arc0019.
Arc rejects conflicting authorization. A class-level restriction overridden by a method-level anonymous declaration is a different, supported case.
@allowAnonymous()
@roles('Admin')
export class Register { handle() {} }@roles('Admin')
export class Register { handle() {} }