glom r2056 - in trunk: . glom



Author: murrayc
Date: Sat Apr 11 14:23:01 2009
New Revision: 2056
URL: http://svn.gnome.org/viewvc/glom?rev=2056&view=rev

Log:
2009-04-11  Murray Cumming  <murrayc murrayc com>

* glom/base_db.cc: add_standard_groups(): Give the developer group
SUPERUSER rights, fixing a problem in another patch I am working on.
I am surprised that this was not a problem before - maybe because the
user (instead of the group) always had superuser rights via the
command line database initialization.

Modified:
   trunk/ChangeLog
   trunk/glom/base_db.cc

Modified: trunk/glom/base_db.cc
==============================================================================
--- trunk/glom/base_db.cc	(original)
+++ trunk/glom/base_db.cc	Sat Apr 11 14:23:01 2009
@@ -1093,7 +1093,7 @@
     type_vec_strings::const_iterator iterFind = std::find(vecGroups.begin(), vecGroups.end(), devgroup);
     if(iterFind == vecGroups.end())
     {
-      bool test = query_execute("CREATE GROUP \"" GLOM_STANDARD_GROUP_NAME_DEVELOPER "\"");
+      bool test = query_execute("CREATE GROUP \"" GLOM_STANDARD_GROUP_NAME_DEVELOPER "\" WITH SUPERUSER");
       if(!test)
       {
         std::cerr << "Glom Base_DB::add_standard_groups(): CREATE GROUP failed when adding the developer group." << std::endl;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]