Page MenuHomePhabricator

Provide a public method for logging user rights changes
Open, LowestPublic

Description

Logging user rights changes is currently happening in UserrightsPage::addLogEntry (which is protected). Since extensions may need to log similar entries as well, I propose that such a method should be decoupled from the special page, moved to UserGroupManager (introduced as part of T234921), and made public. This way, there's no need to duplicate the relevant code, see examples one, two, and three.