Ok, maybe checking permission to WebHome isn't the best way to go, so
if anyone could follow up on the sql query suggestion, it would be nice.
However, I still don't understand why my script doesn't work. If a user
has viewing rights on a WebHome page (the user can actually view the
page),
-users] rights of current user
Ok, maybe checking permission to WebHome isn't the best way to go, so if
anyone could follow up on the sql query suggestion, it would be nice.
However, I still don't understand why my script doesn't work. If a user has
viewing rights on a WebHome page (the user can
Sergiu Dumitriu wrote:
#if($whome.hasAccessLevel(view,$context.getUser()))
Ok, I tried this, but now the method returns true every time... Even
when explicitly adding an access rule denying view access for a specific
user, the method returns true.
Hi,
i think the problem is, that space preferences is in
${space}.WebPreferences page and not in WebHome. Your script just find, if
the user have rights to WebHome page not for entire space.
WebPreferences has object global
rights and i think there you have to do some sql query to find out, if