Skip to content

Commit eb5903d

Browse files
committed
Remove duplicated code
1 parent 407b236 commit eb5903d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

coderd/rbac/authz.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -263,17 +263,6 @@ func (a RegoAuthorizer) authorize(ctx context.Context, subject Subject, action A
263263
return xerrors.Errorf("subject must have a scope")
264264
}
265265

266-
subjRoles, err := subject.Roles.Expand()
267-
if err != nil {
268-
return xerrors.Errorf("expand roles: %w", err)
269-
}
270-
271-
subjScope, err := subject.Scope.Expand()
272-
if err != nil {
273-
return xerrors.Errorf("expand scope: %w", err)
274-
}
275-
var _, _ = subjRoles, subjScope
276-
277266
astV, err := regoInputValue(subject, action, object)
278267
if err != nil {
279268
return xerrors.Errorf("convert input to value: %w", err)

0 commit comments

Comments
 (0)