add normal user restrictions

This commit is contained in:
2020-05-26 18:47:14 +02:00
parent 90a76301f2
commit 49dedcd064
10 changed files with 18 additions and 49 deletions

View File

@@ -8,13 +8,15 @@ container_window::container_window(conexion *con, Glib::RefPtr< Gtk::Application
if(this->loggin.login){
this->cont_inst=new controller_install(&install, sesion.get());
this->cont_info=new controller_info(&info, sesion.get());
this->con_uinfo=new controller_user_info(&uinfo, sesion.get(), this);
this->app.reset();
this->app=Gtk::Application::create( "org.gtkmm.examples.base");
this->add(this->book);
this->book.append_page(install,"build");
this->book.append_page(this->info,"info");
this->book.append_page(this->uinfo,"users");
if(this->loggin.admin){
this->con_uinfo=new controller_user_info(&uinfo, sesion.get(), this);
this->book.append_page(this->uinfo,"users");
}
this->show_all_children();
this->app->run(*this);
}