SAK-23755 use site reference instead of site id when doing security checks

git-svn-id: https://source.sakaiproject.org/svn/assignment/trunk@127124 66ffb92e-73f9-0310-93c1-f5514f145a0a