Changeset 1571 for trunk/admin/picture_modify.php
- Timestamp:
- Oct 21, 2006, 2:28:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/picture_modify.php
r1503 r1571 71 71 } 72 72 73 if (isset($_POST['submit']) and count($page['errors']) == 0 )73 if (isset($_POST['submit']) and count($page['errors']) == 0 and !is_adviser()) 74 74 { 75 75 $data = array(); … … 120 120 if (isset($_POST['associate']) 121 121 and isset($_POST['cat_dissociated']) 122 and count($_POST['cat_dissociated']) > 0) 122 and count($_POST['cat_dissociated']) > 0 123 and !is_adviser() 124 ) 123 125 { 124 126 associate_images_to_categories( … … 130 132 if (isset($_POST['dissociate']) 131 133 and isset($_POST['cat_associated']) 132 and count($_POST['cat_associated']) > 0) 134 and count($_POST['cat_associated']) > 0 135 and !is_adviser() 136 ) 133 137 { 134 138 $query = ' … … 144 148 if (isset($_POST['elect']) 145 149 and isset($_POST['cat_dismissed']) 146 and count($_POST['cat_dismissed']) > 0) 150 and count($_POST['cat_dismissed']) > 0 151 and !is_adviser() 152 ) 147 153 { 148 154 $datas = array(); … … 160 166 if (isset($_POST['dismiss']) 161 167 and isset($_POST['cat_elected']) 162 and count($_POST['cat_elected']) > 0) 168 and count($_POST['cat_elected']) > 0 169 and !is_adviser() 170 ) 163 171 { 164 172 set_random_representant($_POST['cat_elected']);
Note: See TracChangeset
for help on using the changeset viewer.