[Building Sakai] Distinguishing Roles in Site Tabs

Steve Swinsburg steve.swinsburg at gmail.com
Tue Aug 13 20:32:32 PDT 2013


The realms should also be cached so the performance hit should be
negligible (except for first load etc). If there was a genuine issue, that
would be worth looking at. But as for anything that adds additional
lookups, load testing should be performed to ensure any hit is acceptable.

cheers,
S


On Wed, Aug 14, 2013 at 7:09 AM, Charles Severance <csev at umich.edu> wrote:

> I would be careful - this sounds very costly.   Everything the portal
> shows is carefully cached.   Looking at every realm for every site - would
> be costly.
>
> /Chuck
>
>
> On Aug 13, 2013, at 8:27 AM, Steve Swinsburg <steve.swinsburg at gmail.com>
> wrote:
>
> Hi,
>
> You could easily modify the portal to do this, though it will require a
> couple of lines of code. When the list of sites are rendered, run an
> additional check to see what role the current user has in that site (if its
> not already looked up) and then set scope a variable with the css class.
> Then in the VM template, emit the CSS class on the tab. Less than 10 lines
> of code I imagine.
>
> cheers,
> Steve
>
>
> On Tue, Aug 13, 2013 at 10:05 PM, Gabriel Slomka <
> gabriel.slomka at puc-campinas.edu.br> wrote:
>
>> Hello there.****
>>
>> ** **
>>
>> I created a role called “Director” Who can see all sites, pretty much as
>> na admin but He cannot change it. He can be also a Instructor for some
>> classes. Wish to know if its possible to distinguish the classes in the
>> gateway tabs for different roles, for instance the Director could see
>> classes with a different CSS class so i can dye in red classes hes
>> director, and blue classes hes the Instructor. Something like that.****
>>
>> ** **
>>
>>   Does anyone knows if its possible ?****
>>
>> ** **
>>
>>   Thanks alot for the attention !****
>>
>> ** **
>>
>>   Best Regards, Gabriel****
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130814/97af2155/attachment.html 


More information about the sakai-dev mailing list