CRM-13920 add "any" option to getCaseActivityQuery and use when checking case perms for user
CRM-13920 fix case count and activity creation perm check
Merge pull request #2207 from lcdservices/CRM-13920

CRM-13920 add "any" option to getCaseActivityQuery and use when checking...