OPENAM-1110 -- FIx applied to trunk.

git-svn-id: https://svn.forgerock.org/openam/trunk/openam@4009 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
CR-1161 Fix for OPENAM-2082 : forgerock-rest realm endpoint available to non-admin user. Applying fix to trunk.

git-svn-id: https://svn.forgerock.org/openam/trunk/openam@4010 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d