Skip to content

TAON(Auth & Payments ) authorization #33

@darekf77

Description

@darekf77
  • limit crud controller methods
@Taon.CrudController(
...
allowOnlyMethods: ['getPayments'],

...
class UserController() {
 // to access whole controller
 authorize() {

 }
}
  • ??? methods only for user in specyfic group or with permission
@Taon.Http.Method.GET()
getPaymentInfo()  {
  if(this.sessionUser.isAuthorized('to-something')) { }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions