(userID int64)
| 603 | } |
| 604 | |
| 605 | func (r *Repository) HasAccess(userID int64) bool { |
| 606 | return Handle.Permissions().Authorize(context.TODO(), userID, r.ID, AccessModeRead, |
| 607 | AccessModeOptions{ |
| 608 | OwnerID: r.OwnerID, |
| 609 | Private: r.IsPrivate, |
| 610 | }, |
| 611 | ) |
| 612 | } |
| 613 | |
| 614 | func (r *Repository) IsOwnedBy(userID int64) bool { |
| 615 | return r.OwnerID == userID |
nothing calls this directly
no test coverage detected