 
 		if RocketChat.authz.hasPermission(this.userId, 'view-join-code')
 			options.fields.joinCode = 1
-
-		if RocketChat.authz.hasPermission(this.userId, 'view-c-room')
-			return RocketChat.models.Rooms.findByTypeAndName 'c', identifier, options
-		else if RocketChat.authz.hasPermission(this.userId, 'view-joined-room')
-			roomId = RocketChat.models.Subscriptions.findByTypeNameAndUserId('c', identifier, this.userId).fetch()
-			if roomId.length > 0
-				return RocketChat.models.Rooms.find(roomId[0]?.rid, options)
-
-		return this.ready()
+		return RocketChat.models.Rooms.find({}, options)
 
 	RocketChat.roomTypes.setPublish 'p', (identifier) ->
 		options =

				sysMes: 1
				details: 1

		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

		return RocketChat.models.Rooms.find({}, options)
