Commit 51656b32 authored by alexpott's avatar alexpott

Issue #2417895 followup by David_Rothstein:...

Issue #2417895 followup by David_Rothstein: AccountPermissionsCacheContext/PermissionsHashGenerator must special case user 1, since permissions don't apply to it
parent ac8605bf
......@@ -26,9 +26,9 @@ public static function getLabel() {
* {@inheritdoc}
*/
public function getContext($role = NULL) {
// User 1 does not actually have any special behavior for roles, this is
// added as additional security and BC compatibility for SA-CORE-2015-002.
// user.
// User 1 does not actually have any special behavior for roles; this is
// added as additional security and backwards compatibility protection for
// SA-CORE-2015-002.
// @todo Remove in Drupal 9.0.0.
if ($this->user->id() == 1) {
return 'is-super-user';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment