Tag 1.2.9

This commit is contained in:
Hoang Huu
2020-01-09 09:29:52 +07:00
parent bb42be1a8c
commit 5b835c9fa3
6 changed files with 33 additions and 21 deletions

View File

@@ -77,7 +77,7 @@ class Opalestate_Agency_Front {
$user_roles = $current_user->roles;
$user_role = array_shift( $user_roles );
if ( $user_role == 'opalestate_agency' ) {
if ( 'on' === opalestate_get_option( 'enable_dashboard_agency_profile', 'on' ) && $user_role == 'opalestate_agency' ) {
$menu['agency_profile'] = [
'icon' => 'fa fa-user',
'link' => "agency_profile",