mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
chore: merge provisioner key and provisioner permissions (#16628)
Provisioner key permissions were never any different than provisioners. Merging them for a cleaner permission story until they are required (if ever) to be seperate. This removed `ResourceProvisionerKey` from RBAC and just uses the existing `ResourceProvisioner`.
This commit is contained in:
@@ -277,8 +277,10 @@ func (p GetEligibleProvisionerDaemonsByProvisionerJobIDsRow) RBACObject() rbac.O
|
||||
return p.ProvisionerDaemon.RBACObject()
|
||||
}
|
||||
|
||||
// RBACObject for a provisioner key is the same as a provisioner daemon.
|
||||
// Keys == provisioners from a RBAC perspective.
|
||||
func (p ProvisionerKey) RBACObject() rbac.Object {
|
||||
return rbac.ResourceProvisionerKeys.
|
||||
return rbac.ResourceProvisionerDaemon.
|
||||
WithID(p.ID).
|
||||
InOrg(p.OrganizationID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user