<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Modifying Site Admin capabilities with plugin</title>
		<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin</link>
		<description>Gravity Support Forums Topic: Modifying Site Admin capabilities with plugin</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 05:26:00 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/modifying-site-admin-capabilities-with-plugin" rel="self" type="application/rss+xml" />

		<item>
			<title>UWEX on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61908</link>
			<pubDate>Fri, 08 Jun 2012 09:51:05 +0000</pubDate>
			<dc:creator>UWEX</dc:creator>
			<guid isPermaLink="false">61908@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Alex - that seems to do the trick!  Thanks so much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61852</link>
			<pubDate>Thu, 07 Jun 2012 16:28:04 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">61852@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Jason.&#60;br /&#62;
I believe I got it to work ( &#60;a href=&#34;http://pastie.org/4046400&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4046400&#60;/a&#62; ). The trick was to remove the Gravity Forms user_has_cap filter, making sure your priority is under 10 (so that it executes before Gravity Forms).&#60;br /&#62;
Let me know if you have any issues with it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61638</link>
			<pubDate>Wed, 06 Jun 2012 12:42:54 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">61638@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok. I will be glad to take a closer look if you can send me an FTP login as well as WP network admin login to &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>UWEX on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61628</link>
			<pubDate>Wed, 06 Jun 2012 11:55:06 +0000</pubDate>
			<dc:creator>UWEX</dc:creator>
			<guid isPermaLink="false">61628@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nope - I'd tried mucking with the priority earlier.  It doesn't seem to matter when it's called, if being a Site Administrator just overrules any of the specific gravifyforms_ capabilities anyway.&#60;/p&#62;
&#60;p&#62;Thanks for looking into this - I really appreciate it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61625</link>
			<pubDate>Wed, 06 Jun 2012 11:42:10 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">61625@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, there was a change made that would give site administrators full access by default, so that is the root cause of your problem.&#60;/p&#62;
&#60;p&#62;I haven't tested this, but I believe if you make sure your user_has_cap hook runs after Gravity Forms' your problem will be solved.&#60;br /&#62;
To do that, change line 69:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;user_has_cap&#38;#39;, &#38;#39;ces_gravity_forms_modifier_capabilities&#38;#39;, 1, 3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To the following:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;user_has_cap&#38;#39;, &#38;#39;ces_gravity_forms_modifier_capabilities&#38;#39;, 11, 3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If that doesn't do the trick, let me know and I will dig deeper.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61522</link>
			<pubDate>Tue, 05 Jun 2012 16:57:26 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">61522@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've pointed this thread to one of our developers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>UWEX on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61521</link>
			<pubDate>Tue, 05 Jun 2012 16:54:45 +0000</pubDate>
			<dc:creator>UWEX</dc:creator>
			<guid isPermaLink="false">61521@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I did yet some more digging, and discovered what I _think_ is the difference, and I hope you can confirm and offer some help.  It looks that in 1.6.4.4.2, being a Site Administrator just automatically gives you access to all this stuff.  That is, if I also set the following in my code:&#60;/p&#62;
&#60;p&#62;$allcaps['administrator'] = false;&#60;/p&#62;
&#60;p&#62;then my desired functionality is restored.  However, that's certainly not something I want to do and I'm afraid of repercussions with other features.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>UWEX on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61512</link>
			<pubDate>Tue, 05 Jun 2012 16:37:20 +0000</pubDate>
			<dc:creator>UWEX</dc:creator>
			<guid isPermaLink="false">61512@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hate to bump this, but I've spent a ton of time looking into it myself and am getting nowhere. Is there any extra information I can provide?  I confirmed that this code does what I want when used in conjunction with 1.6.2, but does what I describe with 1.6.4.4.2&#60;/p&#62;
&#60;p&#62;Any ideas or other info I can give or try to help?  Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>UWEX on "Modifying Site Admin capabilities with plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modifying-site-admin-capabilities-with-plugin#post-61121</link>
			<pubDate>Fri, 01 Jun 2012 10:58:46 +0000</pubDate>
			<dc:creator>UWEX</dc:creator>
			<guid isPermaLink="false">61121@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We've been using the following custom plugin to restrict access to advanced features on our MultiSite network, and it worked great with 1.6.2, but no longer works properly with the latest public release I was trying to upgrade to.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/wmVvp7VY&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/wmVvp7VY&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The bits that strip out Post and Pricing fields continue to work, but it no longer prevents Site Admins from accessing the Settings page or form creation/editing pages.&#60;/p&#62;
&#60;p&#62;Any idea what changed from 1.6.2 to 1.6.4.4.2 that would let the Site Admins access those features now when they couldn't before?  Thanks!&#60;/p&#62;
&#60;p&#62;(and no, we can't really use the recommended user capabilitiy plugins for our architecture)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
