Remove unused param
This commit is contained in:
parent
edb8cd6330
commit
28fac62239
|
@ -25,7 +25,6 @@ async function getAllDBRoles(db: Database) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updatePermissionOnRole(
|
async function updatePermissionOnRole(
|
||||||
appId: string,
|
|
||||||
{
|
{
|
||||||
roleId,
|
roleId,
|
||||||
resourceId,
|
resourceId,
|
||||||
|
@ -163,16 +162,11 @@ export async function getResourcePerms(ctx: UserCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function addPermission(ctx: UserCtx) {
|
export async function addPermission(ctx: UserCtx) {
|
||||||
ctx.body = await updatePermissionOnRole(
|
ctx.body = await updatePermissionOnRole(ctx.params, PermissionUpdateType.ADD)
|
||||||
ctx.appId,
|
|
||||||
ctx.params,
|
|
||||||
PermissionUpdateType.ADD
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function removePermission(ctx: UserCtx) {
|
export async function removePermission(ctx: UserCtx) {
|
||||||
ctx.body = await updatePermissionOnRole(
|
ctx.body = await updatePermissionOnRole(
|
||||||
ctx.appId,
|
|
||||||
ctx.params,
|
ctx.params,
|
||||||
PermissionUpdateType.REMOVE
|
PermissionUpdateType.REMOVE
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue