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/picture_modify.php

    r1503 r1571  
    7171}
    7272
    73 if (isset($_POST['submit']) and count($page['errors']) == 0)
     73if (isset($_POST['submit']) and count($page['errors']) == 0 and !is_adviser())
    7474{
    7575  $data = array();
     
    120120if (isset($_POST['associate'])
    121121    and isset($_POST['cat_dissociated'])
    122     and count($_POST['cat_dissociated']) > 0)
     122    and count($_POST['cat_dissociated']) > 0
     123    and !is_adviser()
     124  )
    123125{
    124126  associate_images_to_categories(
     
    130132if (isset($_POST['dissociate'])
    131133    and isset($_POST['cat_associated'])
    132     and count($_POST['cat_associated']) > 0)
     134    and count($_POST['cat_associated']) > 0
     135    and !is_adviser()
     136  )
    133137{
    134138  $query = '
     
    144148if (isset($_POST['elect'])
    145149    and isset($_POST['cat_dismissed'])
    146     and count($_POST['cat_dismissed']) > 0)
     150    and count($_POST['cat_dismissed']) > 0
     151    and !is_adviser()
     152  )
    147153{
    148154  $datas = array();
     
    160166if (isset($_POST['dismiss'])
    161167    and isset($_POST['cat_elected'])
    162     and count($_POST['cat_elected']) > 0)
     168    and count($_POST['cat_elected']) > 0
     169    and !is_adviser()
     170  )
    163171{
    164172  set_random_representant($_POST['cat_elected']);
Note: See TracChangeset for help on using the changeset viewer.