X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ae7257d0257f7c687270c9dce6fe480a182e68ff..47aad98291fb8ad90cb308ba21fe73c7c7ccd843:/channels/details.php diff --git a/channels/details.php b/channels/details.php index a006aba..46d3321 100644 --- a/channels/details.php +++ b/channels/details.php @@ -1,6 +1,7 @@ server()->get()) IRCList::setmodes($uplink->server->features->chanmodes); @@ -9,6 +10,8 @@ $channel = ""; $channame = ""; $nick = NULL; $channelObj = NULL; + +$can_edit = current_user_can(PERMISSION_EDIT_CHANNEL); do_log($_GET); do_log($_POST); if (isset($_GET['chan'])) @@ -154,7 +157,7 @@ if (!empty($_POST)) } } - if (isset($_POST['newmodes']) && isset($_POST['paramed_modes'])) + if (isset($_POST['newmodes']) && isset($_POST['paramed_modes']) && $can_edit) { $m = $_POST['newmodes']; $p = $_POST['paramed_modes']; @@ -205,7 +208,6 @@ if (!empty($_POST)) ?> <?php echo $title; ?>
-
@@ -217,7 +219,11 @@ if (!empty($_POST))
+{ + require_once("../inc/footer.php"); + return; +} +?>
-