Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to How can i set "owner" permissions?

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

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.😑

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

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.