Fixing issue with locking categories based on user group permissions