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

SF.net SVN: ledger-smb:[6676] trunk/LedgerSMB/Scripts/setup.pm



Revision: 6676
          http://sourceforge.net/p/ledger-smb/code/6676
Author:   einhverfr
Date:     2014-01-28 04:38:11 +0000 (Tue, 28 Jan 2014)
Log Message:
-----------
adding explicit granting of base_user to upgrade routines

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/setup.pm

Modified: trunk/LedgerSMB/Scripts/setup.pm
===================================================================
--- trunk/LedgerSMB/Scripts/setup.pm	2014-01-28 04:29:05 UTC (rev 6675)
+++ trunk/LedgerSMB/Scripts/setup.pm	2014-01-28 04:38:11 UTC (rev 6676)
@@ -940,6 +940,9 @@
 	if ! $success;
 
     $dbh->do("delete from defaults where setting_key like 'migration_%'");
+    $dbh->do("SELECT admin__add_user_to_role(username, lsmb__role('base_user'))
+                from users");
+
     $dbh->commit;
     $dbh->begin_work;
 }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits