Hi!
I was in need to override some of meta tag permissions as I didn't want to give end user full access of all meta tags. So I made this module which is basically rewrite of override node options module.
You might be interested in including this with your code as it might be pretty handy for lots of people.

Comments

damienmckenna’s picture

Title: override meta tag options » Optionally control all meta tag permissions individually

That's an interesting idea, thanks for the code. I know Nodewords (D6) had separate permissions for each meta tag, while not every meta tag needs it, it might be worth including as a submodule with a disclaimer that "this will make your Permissions page even more crazy."

thesame-’s picture

Ha ha! :D I like your idea of disclaimer!

damienmckenna’s picture

Title: Optionally control all meta tag permissions individually » Optionally control meta tag permissions individually
Version: 7.x-1.0-beta5 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new2.77 KB

How about this alternative approach? It provides a hidden variable, metatag_extended_permissions, which can be set to TRUE to turn on the Extended Permissions option. When this is enabled every single meta tag will have its own permission, users will have to have the 'edit meta tags' permission to see the fieldset and then their access to individual meta tags can be assigned. Food for thought, and I haven't tested it fully yet.

thesame-’s picture

This seams to be a great idea. And code looks cleaner as well. Good job. :)

thesame-’s picture

StatusFileSize
new1.31 KB

I realized my sub-module didn't work for taxonomy terms. I gave a shot to your patch.
Got Notice: Undefined variable: metatag_name in metatag_metatags_form() (line 901 of /sites/all/modules/metatag/metatag.module).

I also noticed empty meta tag groups are not removed and nether is Meta tags tab, if user doesn't have permission to edit any of meta tags.

Patch in attachment.

Status: Needs review » Needs work

The last submitted patch, remove_empty_goups.patch, failed testing.

thesame-’s picture

Status: Needs work » Needs review

#5: remove_empty_goups.patch queued for re-testing.

thesame-’s picture

StatusFileSize
new4.98 KB

I have no idea how to edit patch for re-testing. I'll just upload it again.

Status: Needs review » Needs work

The last submitted patch, remove_empty_goups.patch, failed testing.

thesame-’s picture

StatusFileSize
new2.67 KB

Ok something went seriously wrong. This patch should be fine. I hope...

damienmckenna’s picture

Status: Needs work » Needs review
damienmckenna’s picture

StatusFileSize
new4.34 KB

This merges together the changes from #10 with the README.txt changes from #3.

damienmckenna’s picture

StatusFileSize
new4.39 KB

Some small improvements to the README.txt file.

damienmckenna’s picture

damienmckenna’s picture

Status: Needs review » Fixed

I've tested this and it works as intended. Thanks for the help, thesame!

thesame-’s picture

Glad to be helpful! ;]

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

typo