Modified Users::currentCommunityId method. Added option $defaultMainCommunity (false by default) If true and communityId from session empty, use main community id.
Modified Users::currentCommunityId method.
Added option $defaultMainCommunity (false by default) If true and communityId from session empty, use main community id.

AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform