diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-10-10 13:45:11 -0300 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-10-10 19:45:11 +0300 |
commit | df2c11a878719719b8600745888c570af93827be (patch) | |
tree | 4dd527c9538a748483ee8c1467bd88ef8001a380 /models/org_team.go | |
parent | 57b0d9a38ba7d8dcc05a74fe39ab9f9e765ed8b3 (diff) | |
download | gitea-df2c11a878719719b8600745888c570af93827be.tar.gz gitea-df2c11a878719719b8600745888c570af93827be.zip |
Ignore mentions for users with no access (#8395)
* Draft for ResolveMentionsByVisibility()
* Correct typo
* Resolve teams instead of orgs for mentions
* Create test for ResolveMentionsByVisibility
* Fix check for individual users and doer
* Test and fix team mentions
* Run all mentions through visibility filter
* Fix error check
* Simplify code, fix doer included in teams
* Simplify team id list build
Diffstat (limited to 'models/org_team.go')
-rw-r--r-- | models/org_team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org_team.go b/models/org_team.go index fc5d5834ef..9170ea2c2a 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -314,7 +314,7 @@ func (t *Team) UnitEnabled(tp UnitType) bool { func (t *Team) unitEnabled(e Engine, tp UnitType) bool { if err := t.getUnits(e); err != nil { - log.Warn("Error loading repository (ID: %d) units: %s", t.ID, err.Error()) + log.Warn("Error loading team (ID: %d) units: %s", t.ID, err.Error()) } for _, unit := range t.Units { |