Home Projects Jobs Clientele Contact


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding UMO versions

1. As far as I can see, umo_create() calls umo_create_default_groups() .. (pseudo-calls!):

umo_create() --> umo_create_default_groups() --> person_add_to_group('ADMINS'), acl_grant('ADMINS','...,ADD VERSION,...');

So, the object creator is inserted into Admins group that has 'Add Version' right. May be, something is wrong with a version of UMO created with umo_create_version?

2. There could be one or more contents for each UMO (one per language). Content_id is an id of the particular content translation.

2009/1/5 Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
Two questions:
1. Why does object creator have no "Add version" right automatically?
2. What is "content id"?

Let me expand second question a bit:

Right now I'm trying to create new UMO version automatically,
if user is trying to save UMO which was already published,
and then update it with changes right away.

Alternative flow would be to prompt user to create new version
before showing him "edit" form..

I'd rather do the first one, if it's easy to do (e.g. content
ID passed from published version will easily let me find out
content id for new version), but if not, second route is also fine.


Alexey Parshin,

Authoright © Total Knowledge: 2001-2008