directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-core git commit: FC-133 - Change audit flags
Date Sat, 02 Jan 2016 05:28:26 GMT
Repository: directory-fortress-core
Updated Branches:
  refs/heads/master 53cd9b22f -> bed458059


 FC-133 - Change audit flags


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/bed45805
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/bed45805
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/bed45805

Branch: refs/heads/master
Commit: bed458059ffaf513166f3dc0dc5179d3680d3900
Parents: 53cd9b2
Author: Shawn McKinney <smckinney@apache.org>
Authored: Fri Jan 1 23:28:25 2016 -0600
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Fri Jan 1 23:28:25 2016 -0600

----------------------------------------------------------------------
 src/main/java/org/apache/directory/fortress/core/GlobalIds.java    | 1 -
 src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/bed45805/src/main/java/org/apache/directory/fortress/core/GlobalIds.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/GlobalIds.java b/src/main/java/org/apache/directory/fortress/core/GlobalIds.java
index 8b0e0a3..bb812bd 100755
--- a/src/main/java/org/apache/directory/fortress/core/GlobalIds.java
+++ b/src/main/java/org/apache/directory/fortress/core/GlobalIds.java
@@ -49,7 +49,6 @@ public final class GlobalIds
     public static final String HOME = "HOME";
     public static final String TENANT = "tenant";
     private static final String DISABLE_AUDIT = "disable.audit";
-    // This constant is true unless the disable.audit flag is true.
     public static final boolean IS_AUDIT_DISABLED = ( ( Config.getProperty( DISABLE_AUDIT
) != null ) && ( Config
         .getProperty( DISABLE_AUDIT ).equalsIgnoreCase( "true" ) ) );
     private static final String ENABLE_REST = "enable.mgr.impl.rest";

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/bed45805/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java b/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
index 167662d..fd2e162 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
@@ -918,7 +918,7 @@ final class PermDAO extends ApacheDsDataProvider
         throws FinderException
     {
         // Audit can be turned off here with fortress config param: 'enable.audit=false'
-        if ( GlobalIds.IS_AUDIT_DISABLED && GlobalIds.IS_OPENLDAP )
+        if ( GlobalIds.IS_OPENLDAP && ! GlobalIds.IS_AUDIT_DISABLED )
         {
             try
             {


Mime
View raw message