Ignore:
Timestamp:
Oct 21, 2006, 2:28:07 PM (18 years ago)
Author:
rub
Message:

Resolved Issue ID 0000356:

o Increase security on adviser mode

First modifications of n modifications.
All the others modifications will be done on BSF branch.

Merge branch-1_6 1568:1570 into BSF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/comments.php

    r1154 r1571  
    4747  $to_reject = array();
    4848
    49   if (isset($_POST['submit']))
     49  if (isset($_POST['submit']) and !is_adviser())
    5050  {   
    5151    foreach (explode(',', $_POST['list']) as $comment_id)
     
    6969    }
    7070  }
    71   else if (isset($_POST['validate-all']) and !empty($_POST['list']))
     71  else if (isset($_POST['validate-all']) and !empty($_POST['list']) and !is_adviser())
    7272  {
    7373    $to_validate = explode(',', $_POST['list']);
    7474  }
    75   else if (isset($_POST['reject-all']) and !empty($_POST['list']))
     75  else if (isset($_POST['reject-all']) and !empty($_POST['list']) and !is_adviser())
    7676  {
    7777    $to_reject = explode(',', $_POST['list']);
Note: See TracChangeset for help on using the changeset viewer.