We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccd50c6 + a9af93c commit fd93997Copy full SHA for fd93997
modules/convert/notification.go
@@ -25,6 +25,11 @@ func ToNotificationThread(n *models.Notification) *api.NotificationThread {
25
// since user only get notifications when he has access to use minimal access mode
26
if n.Repository != nil {
27
result.Repository = ToRepo(n.Repository, perm.AccessModeRead)
28
+
29
+ // This permission is not correct and we should not be reporting it
30
+ for repository := result.Repository; repository != nil; repository = repository.Parent {
31
+ repository.Permissions = nil
32
+ }
33
}
34
35
// handle Subject
0 commit comments