IsWriter returns true if current user has write or higher access of repository.
()
| 59 | |
| 60 | // IsWriter returns true if current user has write or higher access of repository. |
| 61 | func (r *Repository) IsWriter() bool { |
| 62 | return r.AccessMode >= database.AccessModeWrite |
| 63 | } |
| 64 | |
| 65 | // HasAccess returns true if the current user has at least read access for this repository |
| 66 | func (r *Repository) HasAccess() bool { |
no outgoing calls
no test coverage detected