some more permission related things
This commit is contained in:
@@ -187,7 +187,12 @@ fun main(args: Array<String>) {
|
||||
)
|
||||
put("/{id}", FleetCtrl::update, Roles(Role.Explicit("ROLE_FLEET_CREATE")))
|
||||
post(
|
||||
"/getAll", FleetCtrl::getAll, Roles(Role.Explicit("ROLE_FLEET_CREATE", "ROLE_FLEET_VIEW"))
|
||||
"/getAll", FleetCtrl::getAll, Roles(Role.Explicit(
|
||||
"ROLE_FLEET_CREATE",
|
||||
"ROLE_FLEET_VIEW",
|
||||
"ROLE_EXPENSE_CREATE",
|
||||
"ROLE_EXPENSE_VIEW",
|
||||
))
|
||||
)
|
||||
delete("/{id}", FleetCtrl::delete, Roles(Role.Explicit("ROLE_FLEET_CREATE")))
|
||||
}
|
||||
@@ -291,7 +296,7 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
get("/{entity}", Entities::getAll, Roles(adminRole, viewRole, appAdmin) )
|
||||
get("/{entity}", Entities::getAll)
|
||||
post("/{entity}/next", Entities::getNextSeqNo, Roles(adminRole, viewRole, appAdmin))
|
||||
get("/{entity}/{id}", Entities::view, Roles(adminRole, viewRole, appAdmin))
|
||||
post("/{entity}/search", Entities::search, Roles(adminRole, viewRole, appAdmin))
|
||||
|
||||
Reference in New Issue
Block a user