Loading...
 
Features / Usability

Features / Usability


How can i set "owner" permissions?

posts: 7 United Kingdom

Hello everyone,

I have installed TikiWIki 1.9.1 and must say I am very happy with it.
Now, I have a couple of questions:

I need TikiWiki to recognise the copyright owner (creator) of Wikipages so that only him/her can edit it, but I do not want to give them total admin rights to the pages they create.
My first approach was to create a group per user, but then it would be too complicated to manually set individual permissions for each page/object they create.

Any ideas on how I can achieve this?

A second question is about levels. I see TikiWiki has 4 default levels (Anonymous, Registered, Editors and Admins). I know how to create new levels, but can I delete, modify or give them a different set of permissions than the default ones? If yes, where is this done?

GBD.

posts: 957

Hi GBD:

> I need TikiWiki to recognise the copyright owner (creator) of Wikipages so that only him/her can edit it, but I do not want to give them total admin rights to the pages they create.

There is an option under "Admin > Wiki" (right column of options) that you can toggle off to avoid this.

> A second question is about levels. I see TikiWiki has 4 default levels (Anonymous, Registered, Editors and Admins). I know how to create new levels, but can I delete, modify or give them a different set of permissions than the default ones? If yes, where is this done?

No idea myself. Did you try "trial and error" through the drop down boxes under permission settings for groups? ;-) (that's what I would try myself)

Hope other person answer beter to your 2nd question.
Cheers

posts: 7 United Kingdom

Hi xavi,

Thanks for replying smile

> There is an option under "Admin > Wiki" (right column of options) that you can toggle off to avoid this.
>

I can only see the following (relevant) options:

- Users can lock pages (if perm):
- Page creators are admin of their pages:

And I have set both to 'false'... but I still do not know how to prevent any registered user to edit the pages they have not created!
(If I toggle 'Usres can lock pages (if perm)' ON, then any Registered user can lock other people's pages...confused

> > A second question is about levels. I see TikiWiki has 4 default levels (Anonymous, Registered, Editors and Admins). I know how to create new levels, but can I delete, modify or give them a different set of permissions than the default ones? If yes, where is this done?
>
> No idea myself. Did you try "trial and error" through the drop down boxes under permission settings for groups? ;-) (that's what I would try myself)
>

Yes, I did! But that assigns permissions to groups, it does not define a different set of permissions for a new level.sad

Regards,

GBD


posts: 4656 Japan

I can't help you about your first question; seems like there's no easy way to do it.

> > > A second question is about levels. I see TikiWiki has 4 default levels (Anonymous, Registered, Editors and Admins). I know how to create new levels, but can I delete, modify or give them a different set of permissions than the default ones? If yes, where is this done?
> >
> > No idea myself. Did you try "trial and error" through the drop down boxes under permission settings for groups? ;-) (that's what I would try myself)
> >
>
> Yes, I did! But that assigns permissions to groups, it does not define a different set of permissions for a new level.sad

If you add a new level (on "Assign permissions to group: " page), and then change the level of one or more permissions using the dropdown menus in the level column of the table under "Assign Permissions," those changes will "stick". They will become associated with the new level.

I confirmed this with a test in which I created a new level called "test". When the page refreshed, "test" was added to all the drop-down lists of levels for each permission. (I had the users_permissions table open in another browser window, and a refresh verified that "test" had been added as a level there). I changed one of the permissions to "test" and clicked "update" (without changing any perms for the group on that page). The db table showed that the permission's level had been changed to "test." Everything you can do with the default levels could also be done with the new "test" level.

So it seems you can make a new level and associate permissions with it in this way — create the level, then change one or more perm's level and click update.

-- Gary

posts: 7 United Kingdom

Hi Gary,

> So it seems you can make a new level and associate permissions with it in this way — create the level, then change one or more perm's level and click update.
>
> — Gary

Thanks! I am very new to all this, so I need a little guidance...

idea This is what I thought about my first question. Please, tell me if this might work, or if you see any problems with my logic before I spoil everything!!! biggrin

1- I will create a new level, called "Superadmin", and assign all the permissions in the default 'admin' level to it. I will create a new user/group (myself) to test that I can still log in, and admin the site.

2- I will do nothing with the 'basic' and the 'editor' levels.

3- I will remove from the 'admin' level all the permissions I do not want my users to have, keeping only "tiki_p_edit" and "tiki_p_rollback".

4- I will remove from the 'registered' level the permissions to "tiki_p_edit" and "tiki_p_rollback".

5- Then, in the Admin panel, I will toggle on "Page creators are admin of their pages:".

I hope that registered users will not be able to edit any pages, but because they will be 'admin' of the pages they create, they will be able to edit/rollback the pages they create only.

question What do you think? Will this work? Or is it too dangerous for a newbie to attempt?

GBD

posts: 957

GBD,
It looks like it should work!
Good luck, and report if you succeded :-)

posts: 7 United Kingdom

> GBD,
> It looks like it should work!
> Good luck, and report if you succeded :-)

Hmmm...confused

It should work. At least, setting permissions to a new level worked very well.

But I had not realised that "tiki_p_edit" sets the permission to create as well as to edit a page (please, correct me if I am wrong!) so, basically, I cannot separate these rights ... In other words, when I remove the right to edit other users' pages, I am also removing the right to create their own pages. sad

Thank you, anyway. If anyone knows how to achieve this "ownership" level, please let me know!

Regards,
GBD


posts: 21 United States

AKA Re: Re: Re: Re: How can i set "owner" permissions?


> > > A second question is about levels. I see TikiWiki has 4 default levels (Anonymous, Registered, Editors and Admins). I know how to create new levels, but can I delete, modify or give them a different set of permissions than the default ones? If yes, where is this done?


The only way I found to remove the broken newly created users permission level is to manually execute: "DELETE FROM users_permissions WHERE 'level'='newlevel';"

To effectively add/modify default users permission levels, the users_permissions must currently be managed directly though SQL (or phpMyAdmin). Attached to this post is a text file with exported SQL statements from mySQL for a visual aid.

It would be storage-space efficient and more elegant in terms of normalization if the 'level' text data were to be extracted into a two field table, say users_permission_levels, with level_sint and level_name. That would also lend to a separate and effective admin/management tool for managing user permission level names.

(Along the same train of thought, there are many other instances where tiki_ and user_ tables could benefit from normalization.)

From a slightly different perspective, if TikiWiki Developers renamed "LEVEL" to "ROLE," then the concept would be:
1. Defining a module action with a tiki_p permission,
2. Assigning that tiki_p permission to a role,
3. Then associating roles (probably with precedence values) to groups.
4. Finally, accounts would be assigned to at least one group.