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

SF.net SVN: ledger-smb:[4356] branches/1.3



Revision: 4356
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4356&view=rev
Author:   einhverfr
Date:     2012-02-24 11:18:18 +0000 (Fri, 24 Feb 2012)
Log Message:
-----------
Fixed assets permissions issues

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB.pm
    branches/1.3/sql/modules/Roles.sql

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-02-24 10:59:04 UTC (rev 4355)
+++ branches/1.3/Changelog	2012-02-24 11:18:18 UTC (rev 4356)
@@ -13,6 +13,8 @@
 * Updated dists/rpm/build.sh to support RHEL 5 (Hilton D)
 * Corrected stylesheet not set on error pages (Chris T)
 * Tightened up permissions on menu items and employee management (Chris T)
+* Corrected permissions on fixed asset depreciation workflow/menu (Chris T)
+* Corrected Perl issues on _db_init when custom fields defined, 5.12 (Chris T)
 
 Hilton D is Hilton Day
 

Modified: branches/1.3/LedgerSMB.pm
===================================================================
--- branches/1.3/LedgerSMB.pm	2012-02-24 10:59:04 UTC (rev 4355)
+++ branches/1.3/LedgerSMB.pm	2012-02-24 11:18:18 UTC (rev 4356)
@@ -1039,8 +1039,9 @@
     $sth = $self->{dbh}->prepare($query);
     $sth->execute;
     my $ref;
+    $self->{custom_db_fields} = {};
     while ( $ref = $sth->fetchrow_hashref('NAME_lc') ) {
-        push @{ $self->{custom_db_fields}{ $ref->{extends} } },
+        push @{ $self->{custom_db_fields}->{ $ref->{extends} } },
           $ref->{field_def};
     }
 

Modified: branches/1.3/sql/modules/Roles.sql
===================================================================
--- branches/1.3/sql/modules/Roles.sql	2012-02-24 10:59:04 UTC (rev 4355)
+++ branches/1.3/sql/modules/Roles.sql	2012-02-24 11:18:18 UTC (rev 4356)
@@ -1737,6 +1737,12 @@
 TO "lsmb_<?lsmb dbname ?>__assets_approve";
 GRANT EXECUTE ON FUNCTION  asset_report__approve(int, int, int, int)
 TO "lsmb_<?lsmb dbname ?>__assets_approve";
+
+INSERT INTO menu_acl (role_name, acl_type, node_id)
+values('lsmb_<?lsmb dbname ?>__assets_approve', 'allow', 239),
+      ('lsmb_<?lsmb dbname ?>__assets_approve', 'allow', 240);
+
+
 GRANT SELECT ON asset_class, asset_item to public;
 GRANT SELECT ON asset_unit_class TO public;
 GRANT SELECT ON asset_dep_method TO public;

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