File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ func (err ErrLFSLockNotExist) Error() string {
534
534
type ErrLFSUnauthorizedAction struct {
535
535
RepoID int64
536
536
UserName string
537
- RequireWrite bool
537
+ Mode AccessMode
538
538
}
539
539
540
540
// IsErrLFSUnauthorizedAction checks if an error is a ErrLFSUnauthorizedAction.
@@ -544,7 +544,7 @@ func IsErrLFSUnauthorizedAction(err error) bool {
544
544
}
545
545
546
546
func (err ErrLFSUnauthorizedAction ) Error () string {
547
- if err .RequireWrite {
547
+ if err .Mode == AccessModeWrite {
548
548
return fmt .Sprintf ("User %s doesn't have write access for lfs lock [rid: %d]" , err .UserName , err .RepoID )
549
549
}
550
550
return fmt .Sprintf ("User %s doesn't have read access for lfs lock [rid: %d]" , err .UserName , err .RepoID )
You can’t perform that action at this time.
0 commit comments