|
From: FlorinCB <ory...@us...> - 2008-08-30 22:23:07
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30907 Modified Files: album_thumbnail.php Log Message: admin check Index: album_thumbnail.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/modules/album_thumbnail.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** album_thumbnail.php 27 Mar 2008 14:31:12 -0000 1.4 --- album_thumbnail.php 30 Aug 2008 22:23:00 -0000 1.5 *************** *** 117,123 **** $auth_data = album_user_access($cat_id, $thiscat, 1, 0, 1, 1, 1, 1); ! if (($auth_data['view'] == 0) && ($album_user_access['view'] == false)) { ! mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } --- 117,133 ---- $auth_data = album_user_access($cat_id, $thiscat, 1, 0, 1, 1, 1, 1); ! if (!(PORTAL_BACKEND == 'phpbb3') && !($userdata['user_type'] == USER_FOUNDER)) { ! if (($auth_data['view'] == 0) && ($album_user_access['view'] == false)) ! { ! mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); ! } ! } ! elseif (!($userdata['user_level'] == ADMIN)) ! { ! if (($auth_data['view'] == 0) && ($album_user_access['view'] == false)) ! { ! mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); ! } } |