09-27-2009 02:34 AM
private void checkManagerRole(String userId, Invitation.ResourceType resourceType, String siteShortName)
{
// if inviter is not the site manager then throw web script exception
String inviterRole = this.siteService.getMembersRole(siteShortName,
userId);
/* if ((inviterRole == null)
|| (inviterRole.equals(SiteModel.SITE_MANAGER) == false)
|| !(authorityService.hasAdminAuthority()) )
{
Object objs[] = { userId, siteShortName };
throw new InvitationExceptionForbidden(
"invitation.invite.not_site_manager", objs);
} */
}
import org.alfresco.service.cmr.security.AuthorityService;
private AuthorityService authorityService;
/**
* @param authorityService authorityService
*/
public void setAuthorityService(AuthorityService authorityService)
{
this.authorityService = authorityService;
}
|| !(authorityService.hasAdminAuthority())
09-27-2009 09:05 AM
09-27-2009 06:57 PM
Did you remember to update the bean definition for InvitationServiceImpl, specifically to add the authorityService (that's what you need the setter function for).
Mike
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.