CanAccess returns whether the resource can be accessed.
()
| 163 | |
| 164 | // CanAccess returns whether the resource can be accessed. |
| 165 | func (r *ResolvedSecurity) CanAccess() bool { |
| 166 | if r.access == nil { |
| 167 | return false |
| 168 | } |
| 169 | return *r.access |
| 170 | } |
| 171 | |
| 172 | // CanAccessAllFields returns whether all fields in the resource are allowed. |
| 173 | func (r *ResolvedSecurity) CanAccessAllFields() bool { |
no outgoing calls