[prev in list] [next in list] [prev in thread] [next in thread]
List: bricolage-general
Subject: Re: Error when sytem admin account edits story elements
From: Scott Lanning <lannings () who ! int>
Date: 2007-06-22 16:02:56
Message-ID: Pine.LNX.4.64.0706221802360.6774 () localhost ! localdomain
[Download RAW message or body]
Committed revision 7933, in rev_1_10.
On Fri, 22 Jun 2007, Matt Rolf wrote:
> It works. Brilliant.
>
> On Jun 22, 2007, at 10:05 AM, Scott Lanning wrote:
>
>> On Fri, 22 Jun 2007, Matt Rolf wrote:
>>> We have created a system admin account to edit templates and system config
>>> stuff without having to view all our workflows.
>>>
>>> This account has no problem editing subelements, but when we try to use it
>>> to edit story elements, the system kicks us back out to the login page
>>> with this error:
>>>
>>> [Fri Jun 22 13:32:31 2007] [error] [client 140.141.15.113] Can't locate
>>> object method "get_grp_ids" via package "id" (perhaps you forgot to load
>>> "id"?) at /usr/local/bricolage/lib/Bric/Biz/Person/User.pm line 997,
>>> <GEN649> line 2088.\n
>>> [/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm:129]
>>> [/usr/local/bricolage/lib/Bric/Biz/Person/User.pm:997]
>>> [/usr/local/bricolage/lib/Bric/App/Authz.pm:157]
>>> [/usr/local/bricolage/comp/admin/profile/element_type/dhandler:119]
>> [snip]
>>> Does this look like a bug or improper configuration?
>>
>> Bug.... looks like a copy/paste error.
>> At comp/admin/profile/element_type/dhandler:119,
>> .... chk_authz($_[0], EDIT, 1)
>> but $_[0] doesn't make sense here because it's outside
>> of a subroutine...
>> Try this:
>> ------------------ cut here 8< ------------------
>> Index: dhandler
>> ===================================================================
>> --- dhandler (revision 7932)
>> +++ dhandler (working copy)
>> @@ -117,7 +117,7 @@
>>
>> my %sites = map { $_->get_id => 1 } @elem_sites;
>> my @available_sites = grep {
>> - !$sites{$_->get_id} && chk_authz($_[0], EDIT, 1)
>> + !$sites{$_->get_id} && chk_authz($_, EDIT, 1)
>> } Bric::Biz::Site->list({
>> active => 1,
>> output_channel_id => 'not null',
>> ------------------ cut here 8< ------------------
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic