Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am aware of http://drupal.org/node/512086 but I think its not related. People are reporting to see the "Restricted node" message when adding nodes.
This issue is about them showing up in the queue itself
http://screencast.com/t/NDA5NTRi
I am logged in as a user that can edit the nodes (when clicking on the same link as on the screenshot) so I don't see a reason why it says "restricted node".
Regards, Tom
PS If necessary I can give remote access to my machine to reproduce. Just drop me a line. My timezone is CET
Comment | File | Size | Author |
---|---|---|---|
#21 | nodequeue-show-restricted-titles-719426.patch | 1.48 KB | oknate |
#18 | 719426-18-D6.patch | 876 bytes | slip |
#18 | 719426-18.patch | 406 bytes | slip |
#15 | 719426-15-D6.patch | 944 bytes | amateescu |
#15 | 719426-15.patch | 593 bytes | amateescu |
Comments
Comment #1
buckley CreditAttribution: buckley commentedFor now I am going to try to give my webmasters more rights since I noticed that user 1 does not have the problem.
Comment #2
buckley CreditAttribution: buckley commentedAdding the permission "administer nodes" solves the problem for people looking for a workaround.
Note that this is only a temporary solution and should be thought over.
Comment #3
ezra-g CreditAttribution: ezra-g commentedSorry that you're having this problem.
A) Do you have any other node access modules installed?
B) Does the problem persist if you do a node access rebuild at admin/content/node-settings ?
Comment #4
mule77 CreditAttribution: mule77 commentedI have the same problem
>A) Do you have any other node access modules installed?
I have TAC installed and I have 2 role one with edit_own_content and another with edit_all_content,
even if the user has the privilege edit_all_content he sees the message "restricted node" for the nodes created by the other user
no one has the privilege "administer nodes"
>B) Does the problem persist if you do a node access rebuild at admin/content/node-settings ?
yes
Comment #5
mule77 CreditAttribution: mule77 commentedComment #6
planctus CreditAttribution: planctus commentedI can confirm this.
This happens when users with "queue manipulation" permission do not have also the "administer nodes" one.
When they look at the queue all the nodes titles are in the form of "Restricted nodes nid: ".
Is there any solution already implemented for this? I mean...other than giving "administer node" permission...
I've tried both the 2.9 and 2.x-dev versions.
Thanks,
Da.
Comment #7
Naiya CreditAttribution: Naiya commentedHi, i have the same problem but i realized that it was because of the language.. my users are able to operate on nodes in every language but in queue they see nodes titles in current language, others are restircted (i can still edit and remove them) - when i switch to my second language - i see "Restricted" normally but those 'normal' nodes as restricted ;)
it looks like a bug to me.
Comment #8
Naiya CreditAttribution: Naiya commentedin function: nodequeue_nids_visible:
$query_restricted = db_query(db_rewrite_sql("SELECT DISTINCT(n.nid) ...
When i remove db_rewrite_sql i have no more problems with restricted nodes, but i'm not sure if removing it is a good idea...?
on the other hand it makes my non-current-language nodes restricted for my non-admin users (it is really not cool).
I'll be glad if maintainer look at it.
Comment #9
fuerst CreditAttribution: fuerst commentedI do have the problem when using i18n. It will rewrite the query by adding the current active language which will just Restrict all nodes that belong to another language. You can verfy this by switching to another language at the same admin page.
Adding the language to the query can be disabled by setting
i18n_selection_mode('off')
. It's not nice to pollute the code by fragments like this. My feeling is that should be fixed in the i18n module: It must stop rewriting at /admin pages completely just like it does in its submodule i18ntaxonomy.Nevertheless see the attached patch for the fix.
Comment #11
fuerst CreditAttribution: fuerst commentedThis patch restricts
i18n_selection_mode('off')
to admin pages because it is actually needed there only (I guess).Comment #13
fuerst CreditAttribution: fuerst commentedChecked the details of the test result but have no glue what it will tell me. Seems to be unrelated to the patch.
Comment #14
feuillet CreditAttribution: feuillet commentedPatch works well here. Thank you.
Comment #15
amateescu CreditAttribution: amateescu commentedAllright, checked how various i18n submodules use that function, and I commited to 6.x-2.x a slightly modified patch that also restores that selection after our query.
Fortunately, the patch for 7.x-2.x was a lot simpler thanks to DBTNG :)
Commited attached patches to 6.x-2.x and 7.x-2.x. Thanks!
http://drupalcode.org/project/nodequeue.git/commit/bd9c8c7
http://drupalcode.org/project/nodequeue.git/commit/4fd425b
Comment #16
fuerst CreditAttribution: fuerst commentedYou are right: forgot to reset the language selection.
Small typo in the D6 patch though: It's called
i18n_selection_mode('reset');
noti18n_selection_mode('resest');
Thanks anyway for submitting!
Comment #17
amateescu CreditAttribution: amateescu commentedThanks for noticing, fixed :)
http://drupalcode.org/project/nodequeue.git/commit/ccd0e09310ee8620b2abf...
Comment #18
slip CreditAttribution: slip commentedCan we also apply this to autocomplete so you can add these nodes to the queue?
Comment #19
amateescu CreditAttribution: amateescu commentedOf course :) Thanks for the patches!
Commited to 6.x-2.x and 7.x-2.x.
http://drupalcode.org/project/nodequeue.git/commit/eddbe63
http://drupalcode.org/project/nodequeue.git/commit/9712bd4
Comment #21
oknateHere's a patch for the original subject of this thread, showing restricted titles to users who don't have access, and get rid of the annoying "Restricted node, NID" titles.
I created a variable setting to turn this on or off. I have no idea why you'd want to hide node titles, but someone must have thought that was useful. I create this patch to optionally show the titles, even if the user doesn't have 'administer nodes' access, the node isn't published, and the user isn't the creater of the node.