code: 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 = me.mainWin.down("[action=remove]")
                  if(o) o.ownerCt.remove(o)
              }
  
          }
      }
docs: Настройка интерфейса в соответствии с правами