Kit Kai's Tech Blog

Blog about SharePoint

This Blog

Syndication

Search

Tags

News



  • Want to be notified when new posts are available? Click the icon below for more information on how to subscribe.

    Blog Flux MapStats: Stats and Counter for Kit Kai's Tech Blog Subscribe to Kit Kai's Tech Blog

    Locations of visitors to this page Add to Technorati Favorites

Community

Email Notifications

Archives

Sharepoint / CMS Blogs

MVPs', Leads' & RDs' Blogs

Singapore Usergroups

Overseas Usergroups

About Me

DUH: Checking if the person have certain rights before rendering certain information

Pardon my yet another very "expressive" post. Wasted quite a bit of precious time, especially when the work I'm doing is community work, and a new born baby is competing with this precious resource. (More to come!)

Again, SDK says if you want to check if the person have approval rights (CAML), then render certain stuff, you use <RightsGroup PermApproveItems="Required" />I use this without really testing it in an existing field, and now there is something wierd going on in my SharePoint. Ok, maybe I should uninstall and reinstall the feature. And you know what? stsadm tells me the above attribute is not declared! NOW I AM PISSED!

Removed the attribute, and install the feature. Then put the attribute back, and now I did proper testing. Added a user without approval rights, and see if information rendered. No it didn't. Used back the administrator account and see if the information renders. Yes it did. HUH? So documentation is correct and works! So next time u see "something not declared" error from stsadm, remove that offending attribute, install and place the offending attribute back.

Maybe my next job, I must make sure SharePoint Architect / Developer must have access to a Psychiatrist!

Published Friday, March 20, 2009 8:45 AM by kitkai