 	selectedUser: ->
 		return Template.instance().selectedUser.get()
 	# this returns the selected user's name field, NOT the username.  Use username
-	# to be consistent with privategroupsflex page. 
+	# to be consistent with privategroupsflex page.
 	selectedUserName: ->
 		username = Template.instance().selectedUser.get() || ''
 		user = Meteor.users.findOne({_id : username})

		otherUser = instance.selectedUser.get()
		if otherUser?
			users.push otherUser
		
		myPermIds = Meteor.user().profile.access
		Meteor.call 'canAccessResource', users, myPermIds, (error, result) ->
			if error

		.uniq(false, (perm) -> perm._id)
		.value()

	# existing room selection should be selected and disabled so that the user can't
	# downgrade the security level.  User country must be selected so that they can't
	# exclude themselves, System country must be selected
	required = _.chain(roomPerms)
		.concat(userCountry)
		.uniq(false, (perm) -> perm._id)
