Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-02-05 23:30:49

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

custom privileges ?

Hello,

is there a solution to customise the privilege of an author ?
For example : an author with “Managing Editor” prvileges except the “access to all site design areas”.

I saw this topic

Thanks for your help.
françois.

Last edited by fpradignac (2005-02-06 02:04:19)


françois

Offline

#2 2005-02-06 08:00:12

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: custom privileges ?

Go to admin then site admin
In the fields at the bottom add new author

TXP gives u these options

Publisher * can create, edit or delete any article, link or comment * can change article status * can edit site preferences * has access to all site design areas * can edit sections and categories * can add and remove authors * can grant and restrict privileges

Managing Editor * can edit and delete any article, link or comment * can change article status from Pending to Live * can edit site preferences * has access to all site design areas * can edit sections and categories

Copy Editor * can edit any article, link or comment * can edit page Page and Form HTML

Staff Writer * can create, edit, publish and delete own articles * can upload images

Freelancer * can create and edit own articles * can change article status from Draft to Pending

Designer * can edit Page HTML, Forms, and CSS

For your requirements you need to make the new author either a staff writter or a freelancer.

>Edit:
Take care to keep yourself as publisher
If u wish to create the custom privillage as per the topic on <a href=“http://forum.textpattern.com/viewtopic.php?id=5343”>http://forum.textpattern.com/viewtopic.php?id=5343</a> u will need to hack the program.

Last edited by colak (2005-02-06 08:10:08)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2005-02-06 08:56:09

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: custom privileges ?

Thanks Colak,

but I would like to customize existant privileges.

Last edited by fpradignac (2005-02-06 08:58:27)


françois

Offline

#4 2005-02-06 13:05:10

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: custom privileges ?

You need to edit the TXP code for that. It shouldn’t be too hard, I will look into it after 1.0, I need different privileges too.

Offline

#5 2006-02-26 22:08:27

Gareth
New Member
From: Sheffield
Registered: 2006-01-12
Posts: 8
Website

Re: custom privileges ?

Changing the Permissions for Each User Role
To customize the user permissions that are assignable on the site’s admin tab, you need to access the /textpattern/lib/admin_config.php file. At the bottom of the file you will see the code shown in the blue box below. Note in each line of code there is text description of the particular feature of Textpattern to which a specific privilege can be assigned; this is followed by a sequence of numbers that match the user roles indicated in the previous section, and which are assigned to each particular Textpattern feature. For example, in the second line of code below you see the feature of “admin” followed by a sequence of numbers from 1 to 6. This is indicating that the admin of the site has the abilities to serve every role indicated in the previoius section…publisher (1), managing editor (2), copy editor (3), etc.:

$txp_permissions = array(
‘admin’ => ’1,2,3,4,5,6’,
‘article.delete.own’ => ’1,2,3,4’,
‘article.delete’ => ’1,2’,
‘article.edit’ => ’1,2,3’,
‘article.edit.published’ => ’1,2,3’,
‘article.edit.own’ => ’1,2,3,4,5,6’,
‘article.publish’ => ’1,2,3,4’,
‘article.php’ => ’1,2’,
‘article’ => ’1,2,3,4,5,6’,
‘category’ => ’1,2,3’,
‘css’ => ’1,2,6’,
‘diag’ => ’1,2’,
‘discuss’ => ’1,2,3’,
‘file’ => ’1,2,3,4,6’,
‘form’ => ’1,2,3,6’,
‘image’ => ’1,2,3,4,6’,
‘import’ => ’1,2’,
‘link’ => ’1,2,3’,
‘log’ => ’1,2,3’,
‘page’ => ’1,2,3,6’,
‘plugin’ => ’1,2’,
‘prefs’ => ’1,2’,
‘section’ => ’1,2,3,6’,
‘tab.admin’ => ’1,2’,
‘tab.content’ => ’1,2,3,4,5,6’,
‘tab.extensions’ => ’1,2’,
‘tab.presentation’ => ’1,2,3,6’,

);

Offline

#6 2006-02-27 18:05:58

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: custom privileges ?

It’s easier to just say Modifying User Account Roles and Privileges ;)

Offline

Board footer

Powered by FluxBB