Skip to content

Commit a99ddd8

Browse files
timbastinCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Tim Bastin <38261809+timbastin@users.noreply.github.com>
1 parent 93c6899 commit a99ddd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

accesscontrol/casbin_rbac.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ func (c *casbinRBAC) RevokeRoleInProject(ctx context.Context, user string, role
259259
return err
260260
}
261261

262-
func (c *casbinRBAC) RevokeRoleInAsset(ctx context.Context, user string, role shared.Role, project string) error {
262+
func (c *casbinRBAC) RevokeRoleInAsset(ctx context.Context, user string, role shared.Role, asset string) error {
263263
concurrencyMutex.Lock()
264264
defer concurrencyMutex.Unlock()
265-
_, err := c.enforcer.DeleteRoleForUserInDomainCtx(ctx, "user::"+user, "asset::"+project+"|role::"+string(role), "domain::"+c.domain)
265+
_, err := c.enforcer.DeleteRoleForUserInDomainCtx(ctx, "user::"+user, "asset::"+asset+"|role::"+string(role), "domain::"+c.domain)
266266
return err
267267
}
268268

0 commit comments

Comments
 (0)