After updating from version 1.1 to 1.4 I experienced the following: Users of role "authenticated users" were not anymore allowed to publish their content, although they still had permission to do so as listed at admin/user/permissions. (The "Publish" tab was missing for unpublished content and of course also the "Publishing options" in node edit form were missing.) Only after removing the permissions and again granting the same permissions for the authenticated users brought things back to normal.
Perhaps the update permission sets as perfomered during update.php did not work as intended:
The following queries were executed
publishcontent module
Update #6001
* Updated permission set 110
* Updated permission set 111
* Updated permission set 112
Error messages while removing the permissions to publish and unpublish "own blog content":
* An illegal choice has been detected. Please contact the site administrator.
and in the Drupal log:
Illegal choice unpublish *all* content in 3 element.
Comments
Comment #1
beatnikdude commentedOnly after removing the permissions and again granting the same permissions for the authenticated users brought things back to normal.
Yes this worked for me as well, but did not fix permissions on existing nodes.
Comment #2
seemas commented[solved]
I have an issue with the permissions and a 'publish content' module in a different way:
I can't uncheck 'publish any content' on the permissions page. But I can manage other permissions at the same time... What function manages to write/update/delete permissions in drupal?
///////[solved]//////////
It was very interesting, but at the same time for me unlogical:
i had checked 4 permissions on one of my custom roles
1. publish any content
2. publish product content
3. unpublish any content
4. unpublish product content
and when I unchecked 'publish any content' it caused no changes after i submit the form.
Only when I unchecked both publish... and unpublish any content... - it worked.
Comment #3
Drupaled-1 commentedHello,
After considerable testing and trying to get this working I am not exactly sure what is going on here.
Here is the issue I am having:
- If one publishes/unpublishes content using the Publish Tab, or the Views Publish option, then they lose access to the content via Taxonomy Permissions. In order to get access back, I must rebuild site permissions and then the user has access again.
- However, if one publishes/unpublishes content by using the regular publish check box, then they do not lose access to the content via Taxonomy Permissions and no site permissions must be rebuilt.
- I have also found that if a user has been given the permission 'administrate nodes' then they are not affected by any of this.
I hope I am on the right track, please let me know if I can provide any more information?
Comment #4
Drupaled-1 commentedComment #5
aaronbaumanMy guess is that TAC does something in a form_submit handler instead of during nodeapi.
Switching Publish Content's logic to use drupal_get_form/drupal_execute might solve this.
Dunno when i'll have time to roll a patch tho...
Comment #6
Drupaled-1 commentedAs a System Administrator I completely understand the time issue. If there is anything I can do to help, even indirectly to help free up some of this time, just let me know. I really appreciate your module regardless, thanks for making it.
Comment #7
Thomas_Zahreddin commentedSame problem here:
Server with PHP Version 5.2.17-0.dotdeb.0 -> permission does not work
desktop with PHP Version 5.3.5-1ubuntu7.2 -> permission works
This is all i can contribute in the moment…
Comment #8
simon georges commentedClosed #1871718: Set Unpublish, Publish is set automatically on save as a duplicate of this one.
Does anybody have any new information to contribute about this issue?
Comment #9
simon georges commentedCould someone eventually test the last version, some changes have been made regarding node access, do you still encounter the issues?
Comment #10
johnennew commentedClosing old issue.