Forum .LRN Q&A: Re: Datamodel Creation Script Error

Collapse
Posted by Ashem Yadava on
Don

Can you please state an example of what you meant by changing foo_read into read, etc.

Currently I am using the privileges as below based on several packages like news, etc.

select acs_privilege__create_privilege('room_create', 'Create a chat room', null);
select acs_privilege__create_privilege('room_edit', 'Edit  a chat room', null);
select acs_privilege__create_privilege('room_delete', 'Delete a chat room', null);
select acs_privilege__create_privilege('room_view', 'View chat room details', null);

select acs_privilege__create_privilege('room_admin', 'Room administrator', null);
select acs_privilege__add_child('room_admin', 'room_create');
select acs_privilege__add_child('room_admin', 'room_edit');
select acs_privilege__add_child('room_admin', 'room_delete');
select acs_privilege__add_child('room_admin', 'room_view');

What do I need to change in this.

Thanks
Ashem

Collapse
Posted by Jade Rubick on
You can just leave out all of the acs_prvilege__ statements.
Collapse
Posted by Jarkko Laine on
Yeah, just leave those statements out and then require just simple privileges (like "read") for your objects instead of these, unless you really need something that can't be accomplished with standard privileges in OpenACS. News is quite an old package and as such doesn't probably reflect very well the current developer guidelines.