src_js/router.js
/**
 * Access denied route: trying to identify the reason
 */
Access denied route: trying to identify the reason
Access denied route : trying to identify the reason
function url__junction(arg){
    if (!wmgui.sid)
        return window.location.replace('#products');
    wmgui.active_ajax = $.ajax({type: 'POST', url: wmgui.perms_endpoint, data: {sid: wmgui.sid}, beforeSend: wmgui.show_preloader}).always(wmgui.hide_preloader).done(function(data){
        if (data.error)
            return wmgui.notify(data.error);
        if (!data.hasOwnProperty('gui') || !data.hasOwnProperty('api'))
            return force_relogin('Please, re-login');
        window.location.replace('#modal/menu');
        $('#tab_links > li').removeClass('working');
        $('#tab_links > li[rev=usr_tab_perms]').addClass('working');
        $('div.menu_tabs').hide();
        $('#usr_tab_perms').show();
        $('#perms_view').html(describe_perms(data));
        wmgui.notify('Sorry, you have no access to these data');
    }).fail(function(xhr, textStatus, errorThrown){
        if (textStatus != 'abort')
            return force_relogin('Please, re-login');
    });
}
function url__junction ( arg ) { if ( ! wmgui . sid ) return window . location . replace ( '#products' ) ; wmgui . active_ajax = $ . ajax ( { type : 'POST' , url : wmgui . perms_endpoint , data : { sid : wmgui . sid } , beforeSend : wmgui . show_preloader } ) . always ( wmgui . hide_preloader ) . done ( function ( data ) { if ( data . error ) return wmgui . notify ( data . error ) ; if ( ! data . hasOwnProperty ( 'gui' ) || ! data . hasOwnProperty ( 'api' ) ) return force_relogin ( 'Please, re-login' ) ; window . location . replace ( '#modal/menu' ) ; $ ( '#tab_links > li' ) . removeClass ( 'working' ) ; $ ( '#tab_links > li[rev=usr_tab_perms]' ) . addClass ( 'working' ) ; $ ( 'div.menu_tabs' ) . hide ( ) ; $ ( '#usr_tab_perms' ) . show ( ) ; $ ( '#perms_view' ) . html ( describe_perms ( data ) ) ; wmgui . notify ( 'Sorry, you have no access to these data' ) ; } ) . fail ( function ( xhr , textStatus , errorThrown ) { if ( textStatus != 'abort' ) return force_relogin ( 'Please, re-login' ) ; } ) ; }
Access denied route: trying to identify the reason
Access denied route : trying to identify the reason