From: Andy S. <an...@ee...> - 2007-03-18 13:12:03
|
That just means that the specified user isn't in the admin group. Assert methods return an error if the assertion isn't true. In this case we chose a ERROR_PERMISSION_DENIED as signal. - Andy Ozgreg wrote: > One of the challenges we face in sync'ing users between WP > and G2 is the lack of usergroups. WP has a security method > called caps, you assign certain capacities to users etc.. > > What I want to do is if the WP user has a certain cap then do > a assertUserIsSiteAdministrator which on my testing box works perfect. > > However when I get to my SVN testing site I get the following message. > > G2: Error (ERROR_PERMISSION_DENIED) > > * in > modules/core/classes/helpers/GalleryUserHelper_medium.class > at line 169 (GalleryCoreApi::error) > * in modules/core/classes/GalleryCoreApi.class at line > 542 (GalleryUserHelper_medium::assertSiteAdministrator) > > Any ideas? |