decir/viewtopic.php
changeset 4 c31210950118
parent 2 253118325c65
child 6 3f66ec435f08
equal deleted inserted replaced
3:88b85b9b9272 4:c31210950118
    70   $row = $db->fetchrow();
    70   $row = $db->fetchrow();
    71   $forum_id = $row['forum_id'];
    71   $forum_id = $row['forum_id'];
    72   $topic_id = $row['topic_id'];
    72   $topic_id = $row['topic_id'];
    73   $topic_exists = true;
    73   $topic_exists = true;
    74   // FIXME: This will be controlled by an ACL rule
    74   // FIXME: This will be controlled by an ACL rule
    75   if ( $row['topic_deleted'] == 1 && $session->user_level < USER_LEVEL_MOD )
    75   if ( $row['topic_deleted'] == 1 && !$session->get_permissions('decir_see_deleted_topic_full') )
    76   {
    76   {
    77     $topic_exists = false;
    77     $topic_exists = false;
    78   }
    78   }
    79 }
    79 }
    80 else
    80 else