Examples of inheritPermissions()


Examples of uk.ac.bbsrc.tgac.miso.core.data.Study.inheritPermissions()

        if (Arrays.asList(user.getRoles()).contains("ROLE_TECH")) {
            SecurityProfile sp = new SecurityProfile(user);
            LimsUtils.inheritUsersAndGroups(study, project.getSecurityProfile());
            study.setSecurityProfile(sp);
        } else {
            study.inheritPermissions(project);
        }

        if (!study.userCanWrite(user)) {
        throw new SecurityException("Permission denied.");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.