Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-12-21 12:49:30

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Alter user permission

Hi at all.

I need to allow Staff Writer to edit articles of another Writer when these articles are expired.

It’s possible?

Offline

#2 2012-12-21 14:18:37

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

Re: Alter user permission

Stef’s smd_user_manager should allow you to do that


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 2012-12-21 15:54:51

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Alter user permission

Hi Colak

I already Use smd_user_manager, and I have already set samo parameter.
Do you know while parameter I must modify to allow user edit expired articles?

Offline

#4 2012-12-21 17:49:34

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

Re: Alter user permission

Hi Marco, I am yet to start using the plugin so I cannot help further. A question at the forum thread would probably result in a prompt answer.


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

Offline

#5 2012-12-21 19:00:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: Alter user permission

MarcoK wrote:

Do you know while parameter I must modify to allow user edit expired articles?

Expired articles should be editable without needing a plugin, though I must admit I’ve never tried it. There’s a pref setting regarding expiry, but I think the only thing that does is allow the public site to ‘see’ the expired articles.

That said, I guess Staff Writers can only “edit own” articles. In smd_user_manager if you select the ‘edit’ checkbox and set staff writers to be able to use it, then all Writers will be able to alter all other Writer’s documents. But maybe they’ll be able to alter other group’s articles too so be careful.

Last edited by Bloke (2012-12-21 19:02:02)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2012-12-24 15:52:16

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Alter user permission

Hi Stef.

I have no problem with original permission between users and their articles both expired.
But I need ot allow each Staff Writer to edit his own (no problem) or someone else articles but only when those are expired.

I must hack /textpattern/include/article.php or can I write a plugin and by this to allow the editing?

Offline

Board footer

Powered by FluxBB