From 8c5cd01b9a2ece08d92abcf7d3e414c05c6602a2 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Wed, 30 Mar 2016 09:36:45 +0700 Subject: [PATCH] canView now accepts the third parameter. --- lib/salet.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/salet.coffee b/lib/salet.coffee index 72c7a70..45af881 100644 --- a/lib/salet.coffee +++ b/lib/salet.coffee @@ -153,7 +153,7 @@ class Salet room = @rooms[roomId] assert(room, "unknown_situation".l({id:roomId})) - if (room.canView.fcall(this, this, currentRoom)) + if (room.canView.fcall(this, this, currentRoom, room)) viewableRoomData.push({ priority: room.priority id: roomId