public ICriteria Add <TRef>(ICriteria crit, string path, Enum op)
 {
     crit.Add(AuthorizationService.GetPermissionQueryInternal(userSession.CurrentUser, op.ToOperation(), path + "." + Rhino.Security.Security.GetSecurityKeyProperty(typeof(TRef))));
     return(crit);
 }