HasAccess returns true if the current user has at least read access for this repository
()
| 64 | |
| 65 | // HasAccess returns true if the current user has at least read access for this repository |
| 66 | func (r *Repository) HasAccess() bool { |
| 67 | return r.AccessMode >= database.AccessModeRead |
| 68 | } |
| 69 | |
| 70 | // CanEnableEditor returns true if repository is editable and user has proper access level. |
| 71 | func (r *Repository) CanEnableEditor() bool { |
no outgoing calls
no test coverage detected