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

SF.net SVN: ledger-smb:[6204] trunk



Revision: 6204
          http://sourceforge.net/p/ledger-smb/code/6204
Author:   einhverfr
Date:     2013-10-31 02:48:02 +0000 (Thu, 31 Oct 2013)
Log Message:
-----------

1.  Fixed users not created for employees when going through the create user workflow if db user does not already exist.
2.  Tightened up import user controls.

Modified Paths:
--------------
    trunk/UI/Contact/divs/user.html
    trunk/sql/modules/admin.sql

Modified: trunk/UI/Contact/divs/user.html
===================================================================
--- trunk/UI/Contact/divs/user.html	2013-10-30 14:41:13 UTC (rev 6203)
+++ trunk/UI/Contact/divs/user.html	2013-10-31 02:48:02 UTC (rev 6204)
@@ -61,14 +61,14 @@
                            label   = 'Yes'
                            value   = '1'
                            checked = importc1
-                           name    = 'import'
+                           name    = 'pls_import'
                            type    = 'radio'
                    } ?></div><div overflow="auto" class="input_group"><?lsmb
                    INCLUDE input element_data = {
                            label   = 'No'
                            value   = '0'
                            checked = importc0
-                           name    = 'import'
+                           name    = 'pls_import'
                            type    = 'radio'
                    } ?></div></div>
             </tr>

Modified: trunk/sql/modules/admin.sql
===================================================================
--- trunk/sql/modules/admin.sql	2013-10-30 14:41:13 UTC (rev 6203)
+++ trunk/sql/modules/admin.sql	2013-10-31 02:48:02 UTC (rev 6204)
@@ -360,7 +360,7 @@
        t_is_role := found;
        t_is_user := admin__is_user(in_username);
 
-       IF t_is_role is true and t_is_user is false and in_pls_import is false THEN
+       IF t_is_role is true and t_is_user is false and in_pls_import is NOT TRUE THEN
           RAISE EXCEPTION 'Duplicate user';
         END IF;
 
@@ -372,7 +372,7 @@
         elsif in_pls_import is false AND t_is_user is false 
               AND in_password IS NULL THEN
                 RAISE EXCEPTION 'No password';
-        elsif  t_is_role is false and in_pls_import IS FALSE THEN
+        elsif  t_is_role is false and in_pls_import IS NOT TRUE THEN
             -- create an actual user
                 execute 'CREATE USER ' || quote_ident( in_username ) || 
                      ' WITH ENCRYPTED PASSWORD ' || quote_literal (in_password)

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


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits