1
Chris03
Permissions
  • 2006/5/21 6:20

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


Im building a module, everything is ok so far!

But i have 1 file that i need XOOPS to allow access to no matter what group they are in.

Right now the module is for registered users only, but there is one file i want to be able to have access to everyone.
KickassAMD

2
jensclas
Re: Permissions

Hi Chris

Your question? is not clear - do you want help with the code to do what you want? And this code will allow access to all to just one file of the module?

3
Chris03
Re: Permissions
  • 2006/5/22 0:58

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


This module im building is protected by XOOPS and only allows the registered group to view it, though there is 1 file that i need viewable by all groups.
KickassAMD

4
Chris03
Re: Permissions
  • 2006/5/22 18:41

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


KickassAMD

5
Dave_L
Re: Permissions
  • 2006/5/22 19:08

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


When you say "file", you mean one of the scripts in the module?

E.g., http://example.com/xoops/modules/xyz/file.php ?

The XOOPS permission system is hierarchical. If a user doesn't have access to the module as a whole, then he doesn't have access to any of the scripts in its directory. Changing that behavior would probably require a lot of hacking.

You might be able to create a block for accessing that "file", i.e., the data that the script accesses, give anonymous users the right to access that block, and then place the block on a page outside of the module, for example on the front page. Then again, I'm not sure if that would work.

Maybe if you provide some more details, such as what the module does and what that specific file does, someone could suggest a solution.

Login

Who's Online

366 user(s) are online (297 user(s) are browsing Support Forums)


Members: 0


Guests: 366


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits