Update delete.php
This commit is contained in:
parent
0827487f47
commit
d0a05280a4
1 changed files with 3 additions and 3 deletions
|
@ -33,10 +33,10 @@ if ($pun_config['o_censoring'] == '1')
|
|||
$cur_post['subject'] = censor_words($cur_post['subject']);
|
||||
|
||||
// Sort out who the moderators are and if we are currently a moderator (or an admin)
|
||||
$mods_array = ($cur_post['moderators'] != '') ? unserialize($cur_post['moderators']) : array();
|
||||
$is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_moderator'] == '1' && array_key_exists($pun_user['username'], $mods_array))) ? true : false;
|
||||
$mods_array = $cur_post['moderators'] != '' ? unserialize($cur_post['moderators']) : array();
|
||||
$is_admmod = $pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_moderator'] == '1' && array_key_exists($pun_user['username'], $mods_array)) ? true : false;
|
||||
|
||||
$is_topic_post = ($id == $cur_post['first_post_id']) ? true : false;
|
||||
$is_topic_post = $id == $cur_post['first_post_id'] ? true : false;
|
||||
|
||||
// Do we have permission to edit this post?
|
||||
if (($pun_user['g_delete_posts'] == '0' ||
|
||||
|
|
Loading…
Reference in a new issue