Allowing non-admins to upload from web page

db0
db0's picture

Joined: 2008-01-25
Posts: 8
Posted: Fri, 2008-01-25 18:17

Hello, I was looking for the answer to this question but unfortunately it is not covered in the documentation and I couldn't find it by searching.

I have the a gallery 2.2.3 core 1.2.0.5 installation here: http://wesnoth.dbzer0.com/blog/wpg2

The answer I am looking for is how to enable the "from web page" tab in the "add items" menu to be used by someone who is not an admin. I had a look at the code and was hoping to realize a quick fix but I couldn't see it (unfortunately I'm not a coder).

Is there a quick and easy way to arrange this?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-01-26 18:52

give your users the add-item permission.

recommended reading:
documenation -> quick start guide, especially the section about permissions.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
db0
db0's picture

Joined: 2008-01-25
Posts: 8
Posted: Sun, 2008-01-27 02:17

Sorry I forgot to mention and I think I should have. The user in question has ownership of the album. He can see the "from bowser" and "from server" tabs, but not the "from webpage". Looking at the additem module, this seems to be hardcoded for the admin, unless I am incorrect.

I will check the quick start guide nevertheless

 
db0
db0's picture

Joined: 2008-01-25
Posts: 8
Posted: Sun, 2008-01-27 16:05

I checked the documentation you mentioned as well as the "How to add items" part but unfortunately the "from web page" part does not mention anything specific. Any advice?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2008-01-27 16:20

not sure about gallery 2.2.3, but gallery 2.2.4 has an option at "site admin -> server/web" to restrict the "from web page" option to admins or to have it enabled for all users that can add items.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
db0
db0's picture

Joined: 2008-01-25
Posts: 8
Posted: Sun, 2008-01-27 19:46

Indeed it is there. Not sure how I missed that. Could be helpful to add that point in the wiki. Cheers! :)