From 33e48bb6a5146b07bbf1e5eab4a27433cdab675f Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 11 Sep 2018 16:42:32 +0800 Subject: [PATCH] * finish task #4707. --- module/company/view/browse.html.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/module/company/view/browse.html.php b/module/company/view/browse.html.php index 0fe002296d..109eee878e 100644 --- a/module/company/view/browse.html.php +++ b/module/company/view/browse.html.php @@ -100,14 +100,18 @@ js::set('confirmDelete', $lang->user->confirmDelete); visits;?> ranzhi) + if(!empty($config->sso->turnon)) { - common::printIcon('user', 'unbind', "userID=$user->account", '', 'list', 'unlink', "hiddenwin"); - } - else - { - echo html::a('javascript:;', "", '', "class='btn disabled'"); + if($user->ranzhi) + { + common::printIcon('user', 'unbind', "userID=$user->account", '', 'list', 'unlink', "hiddenwin"); + } + else + { + echo html::a('javascript:;', "", '', "class='btn disabled'"); + } } + if((strtotime(date('Y-m-d H:i:s')) - strtotime($user->locked)) < $config->user->lockMinutes * 60) { common::printIcon('user', 'unlock', "userID=$user->account", '', 'list', 'unlock', "hiddenwin");