From 9691ae8a735cffe61738b3d5bedce045fdddb417 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 14 Sep 2021 15:07:38 +0800 Subject: [PATCH 001/163] * Fix bug #15160,15159. --- module/product/model.php | 2 +- module/qa/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/product/model.php b/module/product/model.php index ed1443a4ae..9f78b9598a 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1984,7 +1984,7 @@ class productModel extends model */ public function setMenu($productID, $branch = 0, $module = 0, $moduleType = '', $extra = '') { - if(!$this->app->user->admin and strpos(",{$this->app->user->view->products},", ",$productID,") === false and $productID != 0) die(js::error($this->lang->product->accessDenied) . js::locate('back')); + if(!$this->app->user->admin and strpos(",{$this->app->user->view->products},", ",$productID,") === false and $productID != 0 and !defined('TUTORIAL')) die(js::error($this->lang->product->accessDenied) . js::locate('back')); $product = $this->getByID($productID); $params = array('branch' => $branch); diff --git a/module/qa/model.php b/module/qa/model.php index 4d917fbf75..195735848a 100644 --- a/module/qa/model.php +++ b/module/qa/model.php @@ -23,7 +23,7 @@ class qaModel extends model */ public function setMenu($products, $productID, $branch = 0, $extra = '') { - if(!$this->app->user->admin and strpos(",{$this->app->user->view->products},", ",$productID,") === false and $productID != 0) + if(!$this->app->user->admin and strpos(",{$this->app->user->view->products},", ",$productID,") === false and $productID != 0 and !defined('TUTORIAL')) { $this->app->loadLang('product'); die(js::error($this->lang->product->accessDenied) . js::locate('back')); From 825184e665cf286a022e6da957261acc63e1615a Mon Sep 17 00:00:00 2001 From: liyuchun Date: Tue, 14 Sep 2021 15:08:38 +0800 Subject: [PATCH 002/163] * Adjust new feature style. --- module/misc/css/features.css | 4 ++-- module/misc/view/features.html.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/misc/css/features.css b/module/misc/css/features.css index 84860397e5..7d53ba6739 100644 --- a/module/misc/css/features.css +++ b/module/misc/css/features.css @@ -2,7 +2,7 @@ #features > header {text-align: center;} #features > footer {text-align: center; padding-top: 18px; border-top: 1px solid #eee} -#featuresNav {display: inline-block; font-size: 15px; margin-bottom: 15px;} +#featuresNav {display: inline-block; font-size: 15px; margin-bottom: 5px;} #featuresNav > li > a {opacity: .5;} #featuresNav > li > a:hover {opacity: 1;} #featuresNav > li.active > a {background-color: transparent; font-weight: bold; opacity: .7;} @@ -13,7 +13,7 @@ #featuresCarousel .carousel-indicators li {border-color: #d8d8d8; background-color: #d8d8d8; width: 12px; height: 12px;} #featuresCarousel .carousel-indicators li + li {margin-left: 10px !important;} #featuresCarousel .carousel-indicators .active {border-color: #73b1df; background-color: #73b1df; margin: 1px;} -#featuresCarousel .carousel-inner .download-file {position: absolute; right: 95px; bottom: 0; font-size: 12px;} +#featuresCarousel .carousel-inner .download-file {position: absolute; right: 110px; bottom: 0; font-size: 12px;} #features [data-slide-to] {pointer-events: none;} #features.enabled [data-slide-to] {pointer-events: auto;} diff --git a/module/misc/view/features.html.php b/module/misc/view/features.html.php index 842c513515..c4632195cc 100644 --- a/module/misc/view/features.html.php +++ b/module/misc/view/features.html.php @@ -21,7 +21,7 @@