add normal user restrictions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user