mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Added read_role to credential
This commit is contained in:
@@ -186,6 +186,13 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique, ResourceMixin):
|
|||||||
role_name='Credential User',
|
role_name='Credential User',
|
||||||
role_description='May use this credential, but not read sensitive portions or modify it',
|
role_description='May use this credential, but not read sensitive portions or modify it',
|
||||||
)
|
)
|
||||||
|
read_role = ImplicitRoleField(
|
||||||
|
role_name='Credential REad',
|
||||||
|
role_description='May read this credential',
|
||||||
|
parent_role=[
|
||||||
|
'use_role', 'auditor_role', 'owner_role'
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def needs_ssh_password(self):
|
def needs_ssh_password(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user