* finish task #1166.
This commit is contained in:
@@ -62,7 +62,7 @@ js::set('deptID', $deptID);
|
||||
<td class='a-center'>
|
||||
<?php
|
||||
common::printIcon('user', 'edit', "userID=$user->id&from=company", '', 'list');
|
||||
common::printIcon('user', 'delete', "userID=$user->id", '', 'list', '', "hiddenwin");
|
||||
if(strpos($this->app->company->admins, ",{$this->app->user->account},") === false or $this->app->user->account != $user->account) common::printIcon('user', 'delete', "userID=$user->id", '', 'list', '', "hiddenwin");
|
||||
if((strtotime(date('Y-m-d H:i:s')) - strtotime($user->locked)) < $this->config->user->lockMinutes * 60)
|
||||
{
|
||||
common::printIcon('user', 'unlock', "userID=$user->account", '', 'list', '', "hiddenwin");
|
||||
|
||||
@@ -399,6 +399,8 @@ class user extends control
|
||||
{
|
||||
if($confirm == 'no')
|
||||
{
|
||||
$user = $this->user->getByID($userID);
|
||||
if(strpos($this->app->company->admins, ",{$this->app->user->account},") !== false and $this->app->user->account == $user->account) return;
|
||||
die(js::confirm($this->lang->user->confirmDelete, $this->createLink('user', 'delete', "userID=$userID&confirm=yes")));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user