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
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Not seeing plugin permissions for guest role

I'm not seeing the option with the Guest role to download attachments with the file upload plugin. I believe I had the option to allow guest to download before. I moved the site to the root directory recently. Anyway, now guest can't download plugins, any ideas? Thanks.

example page with attachment: http://www.learnthaiformen.com/discussion/6/alternate-ways-of-how-to-say-i-m-drunk-in-thai

Comments

  • Somehow I was able to allow the guest to download attachments from the file upload plugin. Any ideas? Thanks.

  • @vrijvlinder is right. There is NOT a permission for guests to download.

  • peregrineperegrine MVP
    edited September 2015

    There is no way via dashboard.

    But....

    if you want to give guests download permissions you have to either change the permissions table manually (by putting a 1 in the Plugins.Attachments.Download.Allow column for the guest row) or by changing the plugin.

    But since changing the plugin is easier.

    look for a line something like this in class.fileupload.plugin.php

          $this->CanDownload = Gdn::Session()->CheckPermission('Plugins.Attachments.Download.Allow', FALSE);
    

    and change it to

        //  $this->CanDownload = Gdn::Session()->CheckPermission('Plugins.Attachments.Download.Allow', FALSE);
          $this->CanDownload = true;
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    vrijvlinderwhu606
  • @peregrine said:
    There is no way via dashboard.

    But....

    if you want to give guests download permissions you have to either change the permissions table manually (by putting a 1 in the Plugins.Attachments.Download.Allow column for the guest row) or by changing the plugin.

    But since changing the plugin is easier.

    look for a line something like this in class.fileupload.plugin.php

    $this->CanDownload = Gdn::Session()->CheckPermission('Plugins.Attachments.Download.Allow', FALSE);

    and change it to

    // $this->CanDownload = Gdn::Session()->CheckPermission('Plugins.Attachments.Download.Allow', FALSE);
    $this->CanDownload = true;

    Great! That worked. Thanks for the help!

Sign In or Register to comment.