summaryrefslogtreecommitdiff
path: root/includes/model/Room_model.php
diff options
context:
space:
mode:
authorjwacalex <ich-bin@jwacalex.de>2017-04-11 17:25:34 +0200
committerjwacalex <ich-bin@jwacalex.de>2017-04-11 17:25:34 +0200
commitb6d394e982255132ef3727c8bd2b3dae0c5ec67d (patch)
treeb703b4a47806b1b1c068559543fd5cc562045599 /includes/model/Room_model.php
parent7bbfe69583200e5cf2def8757a5c7995d1cc6fa2 (diff)
first fix for #317. hidden rooms can be seen with admin_rooms priviledge
Diffstat (limited to 'includes/model/Room_model.php')
-rw-r--r--includes/model/Room_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php
index 6b6e269e..14935de0 100644
--- a/includes/model/Room_model.php
+++ b/includes/model/Room_model.php
@@ -46,7 +46,7 @@ function Room_create($name, $from_frab, $public) {
* @param $room_id RID
*/
function Room($room_id) {
- $room_source = sql_select("SELECT * FROM `Room` WHERE `RID`='" . sql_escape($room_id) . "' AND `show` = 'Y'");
+ $room_source = sql_select("SELECT * FROM `Room` WHERE `RID`='" . sql_escape($room_id) . "'");
if ($room_source === false) {
return false;