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.
29 lines
568 B
Perl
29 lines
568 B
Perl
package WebGUI::Help::Account_Shop;
|
|
|
|
use strict;
|
|
|
|
our $HELP = {
|
|
|
|
'common vars' => {
|
|
title => 'common account variables',
|
|
body => '',
|
|
private => 1,
|
|
isa => [
|
|
{
|
|
tag => 'common vars',
|
|
namespace => 'Account',
|
|
},
|
|
],
|
|
fields => [ ],
|
|
variables => [
|
|
{ name => "manage_purchases_url", },
|
|
{ name => "managePurchasesIsActive", },
|
|
{ name => "userIsVendor", },
|
|
],
|
|
related => [ ],
|
|
},
|
|
|
|
};
|
|
|
|
1;
|
|
#vim:ft=perl
|