The topic moved from http://drupal.org/node/232638.

I wish we could allow users to edit their own submitted stories. Since this feature involves a risk for spamming as described in the above post, the admin should be able to choose whether or not to enable this feature. It would be great to have the ability to specify the number of days the users can edit their contents after they submit, and whether the module should allow editing of PROMOTED stories or not.

Comments

sikjoy’s picture

Assigned: Unassigned » sikjoy

accepting assignment

sikjoy’s picture

Status: Active » Needs review
StatusFileSize
new984 bytes

Could someone check this patch. This one was pretty simple, but I thought I'd follow procedure.

sikjoy’s picture

Status: Needs review » Fixed
drupalina’s picture

Status: Fixed » Postponed (maintainer needs more info)

Hi,
I noticed that in the drigg 23 there is a new option:
How many hours entries are able to be edited by submitters (set to 0 for indefinite)
cool...
I think this is a very good solution.

Thank you sicjoy!

But I wonder if you plan to implement a feature that disables "edit own scoop" for specified roles once it has been promoted to the front page? (as described in the original post above) I wonder if it is planned for the future developments??? I think this, plus the already developed max-hours feature, would be a more robust option policy-wise.

mercmobily’s picture

Hi,

By seeing the patch, I noticed that it adds the permission:

"edit own drigg stories"

this means that you will be able to give this particular permission only to specific users. So, the two options (the time limitation and the role) will work together.

Bye,

Merc.

drupalina’s picture

yes, but that's not what I asked.

I asked if there are plans to develop an option whereby (in addition to this new feature) admins can tick an option in Roles Access Controls "Disable Edit Own Drigg Story after promotion to front page"

mercmobily’s picture

Hi,

Sicjoy, I think this would be very nice.
IS there any chance if you updating this patch?

Merc.

sikjoy’s picture

Version: 5.x-1.20 » 5.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.11 KB

OK - I added another permission: edit own promoted drigg story. If this is not ticked, the user will not be able to edit their stories once they have become promoted.

--sicjoy

drupalina’s picture

Hi sicjoy,

I don't know how to test patches :(
But if you include this in the dev version, I can test it immediately and report back.

Thanks a bunch!

mercmobily’s picture

Hi,

Watch out, because it takes 24 hours for the devel snapshot to actually go live...

Merc.

sikjoy’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
Status: Needs review » Fixed

This patch has been incorporated into Drigg 2.

mercmobily’s picture

Hi,

Sicjoy, I applied this to the DRUPAL-5--1 BRANCH.
I did change it slightly though...

    // Actual permission is given in two cases: either the story is not
        // promoted...
        if (!$node->promote){
          return TRUE;
        }
        // ...or the story is promoted and the user has the ability to
        // edit promoted stories!
        if ($node->promote && user_access('edit own promoted drigg stories')) {
          return TRUE;
        }

Have a look at the committed code.

Bye!

Merc.

mercmobily’s picture

Status: Fixed » Closed (fixed)
drupalina’s picture

Status: Closed (fixed) » Needs work

I've upgraded to the latest dev version (10 April) to test it. There is no option "edit own promoted drigg story" in the Access controls, or anywhere that I can find.

Has this really been committed? Where?

mercmobily’s picture

Status: Needs work » Closed (fixed)

Hi,

It is committed to the latest development version. However, development versions are only created once a day.

The new development version is a _major_ release. It will be out very soon - the most important thing is to check that the upgrade works.

Bye,

Nerc,

sanoju’s picture

Hi,

Thank you for the great work.
I installed 5.x-1.x-dev to http://mountfujiguide.com, and confirmed that we cannot edit promoted stories unless the "edit own promoted drigg story" permission is given.

Drigg is such a wonderful tool. Thank you!

mercmobily’s picture

Hi Sanjou,

I don't suppose you could drop me an email?

The address is "merc" followed by "mobily1" and then finally ".com"

Bye!

Merc.