mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-30 13:58:33 +00:00
* Ensure that feeds are appropriately restricted * Placate golangci-lint
This commit is contained in:
@@ -142,11 +142,17 @@ func Dashboard(ctx *context.Context) {
|
||||
ctx.Data["MirrorCount"] = len(mirrors)
|
||||
ctx.Data["Mirrors"] = mirrors
|
||||
|
||||
requestingUserID := int64(0)
|
||||
if ctx.User != nil {
|
||||
requestingUserID = ctx.User.ID
|
||||
}
|
||||
|
||||
retrieveFeeds(ctx, models.GetFeedsOptions{
|
||||
RequestedUser: ctxUser,
|
||||
IncludePrivate: true,
|
||||
OnlyPerformedBy: false,
|
||||
IncludeDeleted: false,
|
||||
RequestedUser: ctxUser,
|
||||
RequestingUserID: requestingUserID,
|
||||
IncludePrivate: true,
|
||||
OnlyPerformedBy: false,
|
||||
IncludeDeleted: false,
|
||||
})
|
||||
|
||||
if ctx.Written() {
|
||||
|
Reference in New Issue
Block a user