nl_tokens: Настройка интерфейса в соответствии с правами
pl_tokens: function ( rights ) { var me = this , o if ( rights && me . mainWin ) { if ( ! rights . add ) { o = me . mainWin . down ( "[action=add]" ) if ( o ) o . ownerCt . remove ( o ) o = me . mainWin . down ( "[action=formapply]" ) if ( o ) o . ownerCt . remove ( o ) o = me . mainWin . down ( "[action=formsave]" ) if ( o ) o . ownerCt . remove ( o ) } if ( ! rights . del ) { o = <mask> . mainWin . down ( "[action=remove]" ) if ( o ) o . ownerCt . remove ( o ) } } }