Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
dcee5284
Commit
dcee5284
authored
Jun 20, 2016
by
Vincent Petry
Committed by
Thomas Müller
Jun 20, 2016
Browse files
Don't send activity to non-admins when assigning invisible tags (#25192)
parent
ef5217d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/systemtags/lib/Activity/Listener.php
View file @
dcee5284
...
...
@@ -188,6 +188,10 @@ class Listener {
$activity
->
setAffectedUser
(
$user
);
foreach
(
$tags
as
$tag
)
{
// don't publish activity for non-admins if tag is invisible
if
(
!
$tag
->
isUserVisible
()
&&
!
$this
->
groupManager
->
isAdmin
(
$user
))
{
continue
;
}
if
(
$event
->
getEvent
()
===
MapperEvent
::
EVENT_ASSIGN
)
{
$activity
->
setSubject
(
Extension
::
ASSIGN_TAG
,
[
$actor
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment