SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 01:17:14 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 83
Total: 83
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Admin Store permissions  (Read 2675 times)
~ Phåråoh ~
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 63



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: 9678


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 ~
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 63



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 ~
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 63



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: 9678


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 ~
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 63



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: 9678


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 ~
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 63



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 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
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 0.24 seconds with 21 queries.