I would like to disable the ability for users to block nodes from the search function. I've checked access control/permissions and there is nothing there to disable. I would only like administrators to be able to block nodes / content types from search.
Thanks.

CommentFileSizeAuthor
#3 search_block.module.patch2.46 KBrconstantine

Comments

deviantintegral’s picture

Category: support » feature

Setting up a separate permission for this shouldn't be too difficult. Feel free to submit a patch, or I'll do this when I can (as my client doesn't need this feature).

--Andrew

rconstantine’s picture

Title: Disable block node from search for users? » Permission to block nodes needed

Was going to add this issue myself but thought I'd read all existing issues first. The original title was not clear to me so I've changed it.

I may add this permission myself soon if it doesn't get officially added. Will post a patch (or something) here if I do.

rconstantine’s picture

Status: Active » Needs review
StatusFileSize
new2.46 KB

I added a permission and made showing it on individual nodes dependent on having it. I figured the content type creation/edit page is only shown to those of higher permission so I didn't add it there.

rconstantine’s picture

BTW, the patch wasn't rolled against a checked-out copy, so you may have to delete the first few lines or modify the file references to match yours. I find it easier to use a visual tool and move each change over one at a time after reviewing it.

deviantintegral’s picture

Status: Needs review » Closed (fixed)