[freeside-commits] branch master updated. 46ba9270a226ef01d0c29635373aef09ae42d372

Ivan ivan at 420.am
Tue Dec 30 19:20:15 PST 2014


The branch, master has been updated
       via  46ba9270a226ef01d0c29635373aef09ae42d372 (commit)
       via  495dfb1c34659d1b557bd619bb213a193b410a33 (commit)
      from  f041c3f6e17bdacf8ad6b0da87342ef84e7db404 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 46ba9270a226ef01d0c29635373aef09ae42d372
Merge: 495dfb1 f041c3f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Dec 30 19:20:08 2014 -0800

    Merge branch 'master' of git.freeside.biz:/home/git/freeside


commit 495dfb1c34659d1b557bd619bb213a193b410a33
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Dec 30 19:19:59 2014 -0800

    slightly better errors than generic "Access denied"

diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 9fa8296..43b9ca1 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -3133,12 +3133,12 @@ sub ut_agentnum_acl {
 
   if ( $self->$field() ) {
 
-    return "Access denied"
+    return 'Access denied to agent '. $self->$field()
       unless $curuser->agentnum($self->$field());
 
   } else {
 
-    return "Access denied"
+    return 'Access denied to global'
       unless grep $curuser->access_right($_), @$null_acl;
 
   }
@@ -3161,7 +3161,7 @@ sub fields {
     $table = $something->table;
   } else {
     $table = $something;
-    $something = "FS::$table";
+    #$something = "FS::$table";
   }
   return (real_fields($table));
 }

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Record.pm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list