~ubuntu-branches/ubuntu/raring/ginkgocadx/raring-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/gui/history/panelhistorial2.cpp

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2011-09-09 08:39:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: package-import@ubuntu.com-20110909083926-iktecd132cnku5cd
Tags: 2.5.4.0~rc-1
New upstream version (patches were applied)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *
3
 
 *  $Id: panelhistorial2.cpp 3933 2011-07-07 07:40:00Z tovar $
 
3
 *  $Id: panelhistorial2.cpp 4044 2011-07-22 12:21:07Z tovar $
4
4
 *  Ginkgo CADx Project
5
5
 *
6
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
160
160
                        }
161
161
 
162
162
                        //si es preciso limpiar historial...
163
 
                        GNC::GCS::Permisos::EstadoPermiso estado = GNC::GCS::ControladorPermisos::Instance()->Get("core.history", "anonymous");
 
163
                        GNC::GCS::Permisos::EstadoPermiso estado = GNC::GCS::ControladorPermisos::Instance()->Get("core.restrictions", "anonymous_history");
164
164
                        if (estado) {
165
165
                                GNC::GCS::ControladorHistorial::Instance()->VaciarHistorial(true);
166
166
                        }
174
174
                {
175
175
                        if (comprobarPurga) {
176
176
                                //si es preciso limpiar historial...
177
 
                                GNC::GCS::Permisos::EstadoPermiso estado = GNC::GCS::ControladorPermisos::Instance()->Get("core.history", "anonymous");
 
177
                                GNC::GCS::Permisos::EstadoPermiso estado = GNC::GCS::ControladorPermisos::Instance()->Get("core.restrictions", "anonymous_history");
178
178
                                if (estado) {
179
179
                                        GNC::GCS::ControladorHistorial::Instance()->VaciarHistorial(true);
180
180
                                }
958
958
 
959
959
                        menu.Append(pMenuOpenFile);
960
960
                        menu.Append(pMenuOpenFolder);
961
 
                        if(GNC::GCS::ControladorPermisos::Instance()->Get("core.adquisicion","pacs")) {
 
961
                        if(GNC::GCS::ControladorPermisos::Instance()->Get("core.pacs.limits","pacs_acquisition")) {
962
962
                                menu.AppendSeparator();
963
963
                                menu.Append( pMenuAdquirir );
964
964
                        } else {
965
965
                                delete pMenuAdquirir;
966
966
                        }
967
967
                        menu.AppendSeparator();
968
 
                        if(GNC::GCS::ControladorPermisos::Instance()->Get("core.menu","subir pacs")) {
 
968
                        if(GNC::GCS::ControladorPermisos::Instance()->Get("core.pacs.limits","pacs_upload")) {
969
969
                                menu.Append(pMenuSend);
970
970
                        } else {
971
971
                                delete pMenuSend;