Fork me on GitHub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
Current version is 2.1.11, released 12 June.

How to make a plugin's URL publicly accessible?

businessdadbusinessdad Stealth contributor MVP
edited March 2012 in Vanilla 2.0 Help

I think I'm getting a grasp of Vanilla's logic, but I'm still stuck on a few things. This one gives me the feeling that I'm missing something obvious. It's super-late here (as usual) and I may very well have the issue in front of my nose and not seeing it.

Long story short, I wrote a Controller_MyPublicMethod method in my plugin, and it's fired correctly when I open the URL http://localhost/plugin/myplugin/mypublicmethod. However, this happens only if I'm logged in as Administrator. If I log in with a normal user, or as anonymous, and try to open the URL, I get a Permission Denied error. I'd like that URL and related method to be accessible by everybody, including anonymous users. My new Controller method just contains echo "OK";, without checking any permission.

Any suggestion about what I could be doing wrong is very welcome, thanks. :)

Best Answer

Answers

Sign In or Register to comment.