Skip to content

Commit

Permalink
misc: added reference to conditions doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Dec 13, 2024
1 parent 23958e3 commit db77bef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/resources/project_identity_specific_privilege.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ Required:

Optional:

- `conditions` (String) When specified, only matching conditions will be allowed to access given resource.
- `conditions` (String) When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.
- `inverted` (Boolean) Whether rule forbids. Set this to true if permission forbids.
2 changes: 1 addition & 1 deletion docs/resources/project_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ Required:

Optional:

- `conditions` (String) When specified, only matching conditions will be allowed to access given resource.
- `conditions` (String) When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.
- `inverted` (Boolean) Whether rule forbids. Set this to true if permission forbids.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (r *projectIdentitySpecificPrivilegeResourceResource) Schema(_ context.Cont
},
"conditions": schema.StringAttribute{
Optional: true,
Description: "When specified, only matching conditions will be allowed to access given resource.",
Description: "When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.",
PlanModifiers: []planmodifier.String{
pkg.JsonEquivalentModifier{},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource/project_role_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (r *projectRoleResource) Schema(_ context.Context, _ resource.SchemaRequest
},
"conditions": schema.StringAttribute{
Optional: true,
Description: "When specified, only matching conditions will be allowed to access given resource.",
Description: "When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.",
PlanModifiers: []planmodifier.String{
pkg.JsonEquivalentModifier{},
},
Expand Down

0 comments on commit db77bef

Please sign in to comment.