- fixed transferring from 1.3.88 to 2.0;

- hide restrict options for administrator role;
This commit is contained in:
nikitozzzzzzz
2017-11-23 21:44:18 +02:00
parent 2c2e76a20c
commit c6dfd97655
3 changed files with 61 additions and 32 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ if ( ! class_exists( 'Access' ) ) {
function um_access_check_global_settings() {
global $post;
if ( is_home() ) {
if ( is_front_page() ) {
if ( is_user_logged_in() ) {
$role_meta = UM()->roles()->role_data( um_user( 'role' ) );