mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Don't allow thanking system users
Bug: T237356 Change-Id: I3d7968276a59a66ed4d1931b03310e571d070167 Depends-On: I73f25a10df2c28a69f612eb1db3e91b7125383d9
This commit is contained in:
parent
b8e317d9fb
commit
9f495fcedb
|
@ -99,7 +99,7 @@ class ThanksHooks {
|
|||
protected static function canReceiveThanks( User $user ) {
|
||||
global $wgThanksSendToBots;
|
||||
|
||||
if ( $user->isAnon() ) {
|
||||
if ( $user->isAnon() || $user->isSystemUser() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue