glFusion / glfusion

glFusion CMS - Advanced Content Management with Style
https://www.glfusion.org
GNU General Public License v2.0
14 stars 15 forks source link

Make sure logged-in users is added if uid > 1 #466

Closed leegarner closed 3 years ago

leegarner commented 3 years ago

For functions like runScheduledTask, group memberships need to be checked for specific users other than the one logged in. This makes sure Logged-In Users is added to the group list if the user ID is > 1, instead of checking if the current visitor is anonymous.

Also, checking for an empty $groups array is redundant since "All Users" was added previously.