 RocketChat.API.v1.addRoute 'room.info', authRequired: true,
 	post: ->
 		
-		if RocketChat.authz.hasRole(@userId, 'admin') is false
+		if RocketChat.authz.hasPermission(@userId, 'create-p') is false
 			return RocketChat.API.v1.unauthorized()
 
 		try

	
	get: ->	
		
		if RocketChat.authz.hasRole(@userId, 'admin') is false
			return RocketChat.API.v1.unauthorized()
		
		try

RocketChat.API.v1.addRoute 'room.update', authRequired: true, 
	post: ->
	
		if RocketChat.authz.hasPermission(@userId, 'create-p') is false
			return RocketChat.API.v1.unauthorized()
		try
			this.response.setTimeout (2000)
