|
@@ -500,7 +500,7 @@
|
|
|
|
|
|
|
|
// Shop 权限检查
|
|
// Shop 权限检查
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
- if (appDelegate.user && appDelegate.user_type == USER_ROLE_CUSTOMER) {
|
|
|
|
|
|
|
+ if (appDelegate.user && appDelegate.user_type == USER_ROLE_CUSTOMER && appDelegate.customer_type == CustomerTypeStore) {
|
|
|
if (![Singleton sharedInstance].permissions_edit_order) {
|
|
if (![Singleton sharedInstance].permissions_edit_order) {
|
|
|
|
|
|
|
|
CGRect frame0 = self.cancelOrderButton.frame;
|
|
CGRect frame0 = self.cancelOrderButton.frame;
|
|
@@ -993,7 +993,7 @@
|
|
|
-(void)placeOrder
|
|
-(void)placeOrder
|
|
|
{
|
|
{
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
- if (appDelegate.user_type == USER_ROLE_CUSTOMER) {
|
|
|
|
|
|
|
+ if (appDelegate.user_type == USER_ROLE_CUSTOMER && appDelegate.customer_type == CustomerTypeStore) {
|
|
|
|
|
|
|
|
|
|
|
|
|
if (![Singleton sharedInstance].permissions_edit_order) {
|
|
if (![Singleton sharedInstance].permissions_edit_order) {
|
|
@@ -2666,7 +2666,11 @@
|
|
|
return arr;
|
|
return arr;
|
|
|
// return @[deleteRowAction,addWatchAction, editRowAction,freeRowAction];
|
|
// return @[deleteRowAction,addWatchAction, editRowAction,freeRowAction];
|
|
|
} else if (appDelegate.user_type == USER_ROLE_CUSTOMER) {
|
|
} else if (appDelegate.user_type == USER_ROLE_CUSTOMER) {
|
|
|
- return @[notifyMeAction,deleteRowAction,addWatchAction,editRowAction];
|
|
|
|
|
|
|
+ if (appDelegate.customer_type == CustomerTypeStore) {
|
|
|
|
|
+ return @[notifyMeAction,deleteRowAction,addWatchAction,editRowAction];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return @[notifyMeAction,deleteRowAction,addWatchAction];
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
return @[deleteRowAction,addWatchAction];
|
|
return @[deleteRowAction,addWatchAction];
|