Refactored $user to $cms_user to avoid conflicts.
Refactored $user to $cms_user to avoid conflicts.