CanAccessAllFields returns whether all fields in the resource are allowed.
()
| 171 | |
| 172 | // CanAccessAllFields returns whether all fields in the resource are allowed. |
| 173 | func (r *ResolvedSecurity) CanAccessAllFields() bool { |
| 174 | // If there are no field access rules, all fields are allowed |
| 175 | return r.fieldAccess == nil |
| 176 | } |
| 177 | |
| 178 | // CanAccessField evaluates whether a specific field in the resource is allowed. |
| 179 | func (r *ResolvedSecurity) CanAccessField(field string) bool { |
no outgoing calls
no test coverage detected