Fix problems with the Sales tab in the Shop Account plugin.
Only display the Sales tab to vendors, and prevent www_viewSales from erroring out if the user is not a vendor. New template, template variable, i18n.
This commit is contained in:
parent
022495506f
commit
1e7f443126
5 changed files with 36 additions and 21 deletions
|
|
@ -44,6 +44,11 @@ our $I18N = {
|
|||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
'userIsVendor' => {
|
||||
message => q{A boolean that is true if the current user is a vendor.},
|
||||
lastUpdated => 1263833421,
|
||||
},
|
||||
|
||||
'common account variables' => {
|
||||
message => q{Common Account, Shop Plugin, Template Variables.},
|
||||
lastUpdated => 1230867169,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue