concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
105 stars 66 forks source link

Explicitly declare that the superuser is in the administrators group #876

Closed mlocati closed 4 months ago

mlocati commented 4 months ago

The superuser implicitly belongs to the the administrators group: the core doesn't set it.

You can try it: if you login as admin and check the value of app(\Concrete\Core\User\User::class)->getUserGroups() you'll see that the group ids are 1 (GUEST_GROUP_ID) and 2 (REGISTERED_GROUP_ID), but not 3 (ADMIN_GROUP_ID).