Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 21, 2013, 01:47:25 pm

Login with username, password and session length
Members
Total Members: 10763
Latest: sora
Stats
Total Posts: 32362
Total Topics: 5476
Online Today: 70
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 66
Total: 68
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Admin Store permissions  (Read 3062 times)
~ Phåråoh ~
Jr. Member
**
Offline Offline

Posts: 72



View Profile WWW
« on: July 28, 2009, 08:52:22 pm »

I gave another member the ability to "admin store".  However, the permissions are very limited:  adding/editing category/item.

I expected them to be able to have full ability to admin the store.  Like, see use ALL the settings available to the site Administraor, meaning, all the functions listed in the AdminSettings2() array.

I can't figure out how to add these permissions to "admin store" member group permission option.

Thanks!
« Last Edit: August 06, 2009, 11:08:51 pm by ~ Phåråoh ~ » Logged

"So let it be written; so let it be done!"
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10991


View Profile
« Reply #1 on: July 29, 2009, 09:43:05 pm »

They should be able to access the settings link from the main store page to access the store settings.
Logged
~ Phåråoh ~
Jr. Member
**
Offline Offline

Posts: 72



View Profile WWW
« Reply #2 on: July 29, 2009, 10:46:24 pm »

Correct, they should.  And they can access them through the settings link.  However, the only options they have is to add and edit categories, etc.  They don't have the configure store permissions, so they can't see the orders pending, the logs, the inventory, etc.

When they click on the settings, they are taken to the forum admin area with no links to the store at all.

I can provide a test entity via pm so you can see it if you wish.

« Last Edit: July 29, 2009, 10:48:54 pm by ~ Phåråoh ~ » Logged

"So let it be written; so let it be done!"
~ Phåråoh ~
Jr. Member
**
Offline Offline

Posts: 72



View Profile WWW
« Reply #3 on: August 06, 2009, 07:39:01 am »

Still needing assistance.  Thanks.
Logged

"So let it be written; so let it be done!"
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10991


View Profile
« Reply #4 on: August 06, 2009, 06:40:32 pm »

What version of SMF is being used? Probably can give you should code that you can test.
Logged
~ Phåråoh ~
Jr. Member
**
Offline Offline

Posts: 72



View Profile WWW
« Reply #5 on: August 06, 2009, 08:32:48 pm »

I apologize for that oversight.  Basic info, how could I have forgotten?  v2.0 RC1.2

Thank you.
Logged

"So let it be written; so let it be done!"
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10991


View Profile
« Reply #6 on: August 06, 2009, 08:41:24 pm »

Open Sources/Admin.php
Find
Code:
'search' => array(
'function' => 'AdminSearch',
'permission' => array('admin_forum'),
'select' => 'index'
),]
Add After
Code:
'store' => array(
'label' => $txt['smfstore_admin'],
'file' => 'Store2.php',
'function' => 'StoreMain',
'permission' => array('smfstore_manage'),
'custom_url' => $scripturl . '?action=admin;area=store;sa=admin;sesc=' . $sc,
'icon' => 'server.gif',

),

This should add a Store Configuration link under the main dropdown or main section for the forum in SMF.
Logged
~ Phåråoh ~
Jr. Member
**
Offline Offline

Posts: 72



View Profile WWW
« Reply #7 on: August 06, 2009, 11:09:40 pm »

Perfect!  Thank you so much for your assistance.
Logged

"So let it be written; so let it be done!"
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 01:47:20 pm]

[Today at 01:18:58 pm]

[Today at 12:22:02 am]

[Today at 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 12, 2013, 09:10:43 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.157 seconds with 22 queries.