- // ONLY add perms/roles which are related to this lookup
- for(String pdr : pData.roles(false)) {
- for(RoleDAO.Data r : roles.value) {
- if(pdr.equals(r.encode())) {
- PermDAO.Data pdd = mspdd.get(pData.fullPerm());
- if(pdd==null) {
- pdd = new PermDAO.Data();
- pdd.ns = pData.ns;
- pdd.type = pData.type;
- pdd.instance = pData.instance;
- pdd.action = pData.action;
- pdd.description = pData.description;
+ // ONLY add perms/roles which are related to this lookup
+ for(String pdr : pData.roles(false)) {
+ for(RoleDAO.Data r : roles.value) {
+ if(pdr.equals(r.encode())) {
+ PermDAO.Data pdd = mspdd.get(pData.fullPerm());
+ if(pdd==null) {
+ pdd = new PermDAO.Data();
+ pdd.ns = pData.ns;
+ pdd.type = pData.type;
+ pdd.instance = pData.instance;
+ pdd.action = pData.action;
+ pdd.description = pData.description;