import org.springframework.orm.hibernate.support.HibernateDaoSupport;
public class AuthzSakaiImpl extends HibernateDaoSupport implements Authz {
public static final String INSTRUCTOR_PERMISSION = "site.upd";
public static final String TA_PERMISSION = "site.ta";
public static final String STUDENT_PERMISSION = "site.visit";
<BUG>public Role getSiteRole(String userUuid, String siteContext) {
boolean isInstructor = SecurityService.unlock(INSTRUCTOR_PERMISSION, siteContext);

boolean isTa = SecurityService.unlock(TA_PERMISSION, siteContext);

boolean isStudent = SecurityService.unlock(STUDENT_PERMISSION, siteContext);
</BUG>
if(isInstructor) {

import org.springframework.orm.hibernate.support.HibernateDaoSupport;
public class AuthzSakaiImpl extends HibernateDaoSupport implements Authz {
public static final String INSTRUCTOR_PERMISSION = "site.upd";
public static final String TA_PERMISSION = "site.ta";
public static final String STUDENT_PERMISSION = "site.visit";
public Role getSiteRole(String userUuid, String siteContext) {
String siteAuthzRef = SakaiUtil.getSiteReference();
boolean isInstructor = SecurityService.unlock(INSTRUCTOR_PERMISSION, siteAuthzRef);
boolean isTa = SecurityService.unlock(TA_PERMISSION, siteAuthzRef);
boolean isStudent = SecurityService.unlock(STUDENT_PERMISSION, siteAuthzRef);
if(isInstructor) {
