Author: shane.bryzak(a)jboss.com
Date: 2008-08-31 18:22:41 -0400 (Sun, 31 Aug 2008)
New Revision: 8861
Modified:
trunk/src/main/org/jboss/seam/security/Identity.java
Log:
fixed NPE
Modified: trunk/src/main/org/jboss/seam/security/Identity.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/Identity.java 2008-08-31 22:09:02 UTC (rev
8860)
+++ trunk/src/main/org/jboss/seam/security/Identity.java 2008-08-31 22:22:41 UTC (rev
8861)
@@ -412,7 +412,7 @@
public boolean hasRole(String role)
{
if (!securityEnabled) return true;
- if (systemOp.get()) return true;
+ if (systemOp.get() == Boolean.TRUE) return true;
isLoggedIn(true);
@@ -524,7 +524,7 @@
*/
public void checkPermission(String name, String action, Object...arg)
{
- if (systemOp.get()) return;
+ if (systemOp.get() == Boolean.TRUE) return;
isLoggedIn(true);
@@ -546,7 +546,7 @@
public void checkPermission(Object target, String action)
{
- if (systemOp.get()) return;
+ if (systemOp.get() == Boolean.TRUE) return;
isLoggedIn(true);
@@ -577,7 +577,7 @@
public boolean hasPermission(String name, String action, Object...arg)
{
if (!securityEnabled) return true;
- if (systemOp.get()) return true;
+ if (systemOp.get() == Boolean.TRUE) return true;
if (permissionMapper == null) return false;
if (arg != null)
@@ -598,7 +598,7 @@
public boolean hasPermission(Object target, String action)
{
if (!securityEnabled) return true;
- if (systemOp.get()) return true;
+ if (systemOp.get() == Boolean.TRUE) return true;
if (permissionMapper == null) return false;
if (target == null) return false;
Show replies by date