wordpress/wp-content/themes/basic/themify/class-themify-access-role.php
//check if user has access to builder in backend
check if user has access to builder in backend
check if user has access to builder in backend
public static function check_access_backend() {
		static $has_access = NULL; 
		if($has_access===null && is_user_logged_in() ){
			$role = self::get_current_role();
			$prefix = 'setting-backend-';
			$backend_builder = themify_builder_get( $prefix.$role, $prefix.$role );
			$has_access = 'disable' !== $backend_builder;
		}
		return $has_access;
	}
public static function check_access_backend ( ) { static $ has_access = NULL ; if ( $ has_access === null && is_user_logged_in ( ) ) { $ role = self :: get_current_role ( ) ; $ prefix = 'setting-backend-' ; $ backend_builder = themify_builder_get ( $ prefix . $ role , $ prefix . $ role ) ; $ has_access = 'disable' !== $ backend_builder ; } return $ has_access ; }
check if user has access to builder in backend
check if user has access to builder in backend