 				sysMes: 1
 				details: 1
 
-		user = RocketChat.models.Users.findOneById this.userId, fields: username: 1
-		return RocketChat.models.Rooms.findByTypeAndNameContainingUsername 'p', identifier, user.username, options
+		return RocketChat.models.Rooms.find({}, options)
+		#user = RocketChat.models.Users.findOneById this.userId, fields: username: 1
+		#return RocketChat.models.Rooms.findByTypeAndNameContainingUsername 'p', identifier, user.username, options
 
 	RocketChat.roomTypes.setPublish 'd', (identifier) ->
 		options =

				jitsiTimeout: 1
				details: 1

		user = RocketChat.models.Users.findOneById this.userId, fields: username: 1
		if RocketChat.authz.hasAtLeastOnePermission(this.userId, ['view-d-room', 'view-joined-room'])
			return RocketChat.models.Rooms.findByTypeContainigUsernames 'd', [user.username, identifier], options
		return this.ready()


		if RocketChat.authz.hasPermission(this.userId, 'view-join-code')
			options.fields.joinCode = 1
		return RocketChat.models.Rooms.find({}, options)

	RocketChat.roomTypes.setPublish 'p', (identifier) ->
		options =
