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.
We installed and enabled the fb_social plugin, but when I went to perms to enable for specific roles, there wasn't anything there. So if I want a developer role to be able to use the "Like" but not "Share", there isn't a way to assign perms. Or even to assign to a developer at all.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1063922--fb_social-permission-06.patch | 22.21 KB | jsdix |
Comments
Comment #1
ferdi CreditAttribution: ferdi commentedWhat you want is for everyone to share/like the content in your site. That's the idea behind this project.
Comment #2
crimsondryad CreditAttribution: crimsondryad commentedNo, you misunderstand what I asked for. I would like to be able to assign the "Share" perms to a different role than "Like" perms. I would also like the application key to be available *only* to admins, while allowing other roles to administer what gets linked where. The way it's set up now requires an admin user to do anything with the module. It also doesn't allow us to turn off pieces...like if we wanted to only use "Like" on the site, "Share" can't be restricted. Again, role-based perms would be the easiest way to do that because the admin just wouldn't give the role to the user.
From a corporate standpoint, we don't want the average bear to know / have access to our Facebook API key.
Comment #3
meecect CreditAttribution: meecect commentedCan this be re-opened? I'd like to be able to let developers and admins be able to access the fb_social admin pages without havig to give them the 'admin' password. As it is right now, only admin (user 1) can administer this module. It seems like a pretty simple change. Just add one permission in hook_perm (or whatever, been a while since I did custom module development) to 'administer fb_social' and restrict that role to access admin/structure/fbsocial
If you won't do it, would you accept a patch?
Comment #4
drupalninja99 CreditAttribution: drupalninja99 commentedAdded a patch that changes 'administer site configuration' to 'administer fb_social'
Comment #5
drupalninja99 CreditAttribution: drupalninja99 commentedThis patch includes some whitespace fixes.
Comment #6
jsdix CreditAttribution: jsdix commentedExpanded on #4 and allowed users with the 'administer fb_social' permission to have the ability to administer the Presets tab.