Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-server
Commits
bdb6144b
Commit
bdb6144b
authored
Aug 01, 2018
by
Jorgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some small issues
parent
48c06530
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Authorization.php
cp/application/controllers/Authorization.php
+5
-0
users.php
cp/application/views/admins/users.php
+1
-1
No files found.
cp/application/controllers/Authorization.php
View file @
bdb6144b
...
...
@@ -97,6 +97,11 @@ class Authorization extends CI_Controller {
}
else
if
(
$user_info
->
type
==
'user'
)
{
redirect
(
'users/typos/'
);
}
}
else
{
$this
->
error_login
();
$this
->
data
[
'error_message'
]
=
"Аккаунт заблокирован"
;
$this
->
load
->
view
(
$this
->
view_name
,
$this
->
data
);
return
;
}
}
else
{
$this
->
error_login
();
...
...
cp/application/views/admins/users.php
View file @
bdb6144b
...
...
@@ -26,7 +26,7 @@ jQuery("#table_users").jqGrid({ // Привязка плагина к табли
{
name
:
"firstname"
,
index
:
"u.firstname"
,
width
:
80
,
sortable
:
true
,
searchtype
:
"string"
,
align
:
'center'
,
editable
:
true
,
editrules
:{
required
:
true
}},
{
name
:
"middlename"
,
index
:
"u.middlename"
,
width
:
80
,
sortable
:
true
,
searchtype
:
"string"
,
align
:
'center'
,
editable
:
true
,
editrules
:{
required
:
true
}},
{
name
:
"lastname"
,
index
:
"u.lastname"
,
width
:
80
,
sortable
:
true
,
searchtype
:
"string"
,
align
:
'center'
,
editable
:
true
,
editrules
:{
required
:
true
}},
{
name
:
"activity"
,
index
:
"u.activity"
,
width
:
80
,
sortable
:
true
,
searchtype
:
"integer"
,
align
:
'center'
,
editable
:
true
,
edittype
:
"checkbox"
,
editoptions
:
{
value
:
"1:0"
,
defaultValue
:
'0'
},
formatter
:
'checkbox'
},
{
name
:
"activity"
,
index
:
"u.activity"
,
width
:
80
,
sortable
:
true
,
searchtype
:
"integer"
,
align
:
'center'
,
editable
:
true
,
edittype
:
"checkbox"
,
editoptions
:
{
value
:
"1:0"
,
defaultValue
:
"1"
},
formatter
:
'checkbox'
},
{
name
:
"date"
,
index
:
"u.date"
,
width
:
120
,
sortable
:
true
,
searchtype
:
"string"
,
align
:
'center'
},
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment