1 package org.apache.turbine.modules.actions; 2 3 56 57 import org.apache.turbine.RunData; 58 import org.apache.turbine.modules.Action; 59 import org.apache.fulcrum.security.TurbineSecurity; 60 import org.apache.fulcrum.security.util.AccessControlList; 61 62 94 public class AccessController 95 extends Action 96 { 97 108 public void doPerform( RunData data ) 109 throws Exception 110 { 111 if (data.getUser() != null && data.getUser().hasLoggedIn()) 112 { 113 AccessControlList acl = data.getACLFromSession(); 114 if (acl == null) 115 { 116 acl = TurbineSecurity.getACL(data.getUser()); 117 } 118 data.setACL(acl); 119 } 120 } 121 } 122 | Popular Tags |