Changeset 1928786
- Timestamp:
- 08/22/2018 07:18:17 PM (8 years ago)
- Location:
- super-access-manager/trunk
- Files:
-
- 3 edited
-
inc/admin/class-accessmanager.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
-
super-access-manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
super-access-manager/trunk/inc/admin/class-accessmanager.php
r1916342 r1928786 342 342 $usercheck = false; 343 343 344 345 if(isset($current_user->ID )) { 346 // Check if user on its own had access 347 if ( in_array( $current_user->ID, $meta_array ) ) { 348 return true; 349 } 350 } 351 344 352 // check if only available vistors 345 353 if(in_array('onlyvistors',$meta_array)){ … … 347 355 // Vistors can see or Admins - Not available for other users 348 356 if(!isset($current_user->ID) OR get_option('xeweb-sam_admin_see_all_pages') == "on" && current_user_can('manage_options')){ 349 return true;357 return true; 350 358 } 351 352 // Not available for other users353 return null;354 359 355 360 } … … 363 368 } 364 369 365 // Not available for other users 366 return null; 367 368 } 369 370 } 370 371 371 372 … … 388 389 } 389 390 390 if ($usercheck == true) { // check if user has posts391 if ($usercheck === true) { // check if user has posts 391 392 392 393 if($meta_array != 0) { // check if post id is not zero … … 394 395 } 395 396 396 }elseif($rolecheck == true && $usercheck != true){ // check roles397 }elseif($rolecheck === true){ // check roles 397 398 398 399 return true; … … 671 672 672 673 // If not, remove from list 673 if ( $usercan != true ) unset( $items[$key] );674 if ( $usercan !== true ) unset( $items[$key] ); 674 675 675 676 } -
super-access-manager/trunk/readme.txt
r1916353 r1928786 54 54 == Changelog == 55 55 56 = 0.2.4 = 57 * Fix: User specific access does not work 58 56 59 = 0.2.3.2 = 57 60 * Fix: Headers already send on activation fixed -
super-access-manager/trunk/super-access-manager.php
r1916351 r1928786 3 3 * Plugin Name: Super Access Manager 4 4 * Description: Control post access on a role and userbased level. 5 * Version: 0.2. 3.25 * Version: 0.2.4 6 6 * Author: Xeweb 7 7 * Author URI: https://www.xeweb.be
Note: See TracChangeset
for help on using the changeset viewer.