Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 12:35 pm EST
Geeklog Forums
User Can Not Edit Drafts
Status: offline
agnot
Forum User
Newbie
Registered: 01/01/12
Posts: 2
Hey,
I would like users to be able to edit their drafts. Am I missing something or is this not possible?
I
When "user" logs on and tries to edit test story
However, when user clicks on the edit icon, no editor, just the following message above a story rendition.
You are trying to access a story that you don't have rights to. This attempt has been logged. You may view the article in read-only below. Please go back to the story administration screen when you are done.
I also noticed that when I remove story.edit permissions, leaving only story.submit permissions in group story submitters, there is no stories function by which to submit stories, as well as no submissions function.
I would like users to be able to edit their drafts. Am I missing something or is this not possible?
I
- insured that Configuration Manager > Story Default Permissions[0] = Read-Write
- insured that the group story submitters had story.submit and story.edit permissions
- created a test user, "user"
- added user to story submitters group
- created a test story as user and saved with draft flag.
When "user" logs on and tries to edit test story
- test story is listed under submissions and stories
- test story lists the author as "user"
- test story shows read and write permissions under owner when I check as Admin
- there is an edit icon next to the story.
However, when user clicks on the edit icon, no editor, just the following message above a story rendition.
You are trying to access a story that you don't have rights to. This attempt has been logged. You may view the article in read-only below. Please go back to the story administration screen when you are done.
I also noticed that when I remove story.edit permissions, leaving only story.submit permissions in group story submitters, there is no stories function by which to submit stories, as well as no submissions function.
9
10
Quote
Status: offline
agnot
Forum User
Newbie
Registered: 01/01/12
Posts: 2
OK, think I found the thread that says GL does not support this style of work flow, ie, submitters save drafts over a period of work sessions.
Story Author can't retrieve draft (or edit any post)
Story Author can't retrieve draft (or edit any post)
10
10
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
I would like users to be able to edit their drafts.
Hi,
I can write that function for you. Buy me a beer or two and I will make this possible for your team.
Thanks,
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
14
8
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Here is a quick way to not allow to non story admin to un-draft there submissions:
function CUSTOM_itemsaved ($sid, $type = 'article') {
global $_TABLES, $_USER;
if (!SEC_hasRights('story.admin')) {
DB_change($_TABLES['stories'],'draft_flag','1','sid',$sid);
}
}
But once the article is approve, if the author try to edit it, the draft flag will be set to true.
More can be done but this need a plugin... and more beers
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Text Formatted Code
function CUSTOM_itemsaved ($sid, $type = 'article') {
global $_TABLES, $_USER;
if (!SEC_hasRights('story.admin')) {
DB_change($_TABLES['stories'],'draft_flag','1','sid',$sid);
}
}
But once the article is approve, if the author try to edit it, the draft flag will be set to true.
More can be done but this need a plugin... and more beers
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
11
12
Quote
Sam
Anonymous
Ben, thanks for this, which file to insert or replace code? Thanx.
8
10
Quote
Sam
Anonymous
The problem is I want to be able to moderate a contribution and then send back to the original author (only) for editing and only allow the original author rights to edit their own contributions (not others).
Need more assistance if possible (newbie).
Need more assistance if possible (newbie).
9
13
Quote
Sam
Anonymous
[all as draft]
11
11
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
You need to create a new group ( e.g. 'Writers' ) and add story.edit right to this group. Then add the user to your new group.
Edit your topic which your article will belong. Give Access Rights to Group "Writers" and set permissions for this group to edit.
Now (with the above CUSTOM_itemsaved function) the user can edit the draft but can't un-draft the story.
Once the story is ready, un-draft it and un-set owner edition right if you do not want the user to edit his article. If you do not do this, the owner can edit the story but when the story is save the draft flag come back.
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Edit your topic which your article will belong. Give Access Rights to Group "Writers" and set permissions for this group to edit.
Now (with the above CUSTOM_itemsaved function) the user can edit the draft but can't un-draft the story.
Once the story is ready, un-draft it and un-set owner edition right if you do not want the user to edit his article. If you do not do this, the owner can edit the story but when the story is save the draft flag come back.
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
11
12
Quote
All times are EST. The time is now 12:35 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content