Wouter van Vliet <[EMAIL PROTECTED]> wrote:
> On woensdag 4 februari 2004 17:50 Michiel Meeuwissen told the
> butterflies: 
> > Wouter van Vliet <[EMAIL PROTECTED]> wrote:
> > > Ok, that is quite some information. I've been thinking about the
> > > CloudSecurity too, but guessed it was not what i wanted, since also
> > > users who are not logged in are allowed on the site.
> > 
> > That is not true generally. You could disallow read rights
> > for the anonymous user in cloud security, in which case the
> > non-logged in user could still visit the site but it would be rather
> > uninteressting. 
> > 
> > To enforce logging in then, you could start your page with
> > <mm:cloud rank="basic user"> rather then with just <mm:cloud>
> > 
> > Michiel
> 
> Well, you see, I *want* to allow read rights to any anonymous user, and add
> functionality for users who are logged in. And *therefore* thought the
> CloudSecurity would not be what I wanted. Anyways, I'm gonna get freaky now
> with functions and parameters. Hope it's gonna work ;)

In that case you could use checks like <mm:maywrite> and so on around the
parts for extra functionality.

Or, perhaps you could check on rank, for which unfortunately does not exist
a tag, but it is simple anyway

<mm:cloud jspvar="cloud">

  <% if (Rank.getRank(cloud.getUser().getRank()).compareTo(Rank.getRank("basic user")) 
> 0) { %>


  <% } %>
</mm:cloud>

Which is a real life example which I use myself.

Coming to think of it, a <mm:rank> tag would be handy, for this.

 Michiel

-- 
Michiel Meeuwissen 
Mediapark C101 Hilversum  
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

Reply via email to