Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
150147c6
Commit
150147c6
authored
Jul 20, 2016
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the removing of built in permissions for admin app
parent
7a267dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
core/models.py
core/models.py
+6
-0
No files found.
core/models.py
View file @
150147c6
...
...
@@ -105,6 +105,12 @@ class User(AbstractBaseUser):
USERNAME_FIELD
=
'username'
# REQUIRED_FIELDS = ['email']
def
has_module_perms
(
self
,
package_name
):
return
self
.
is_active
def
has_perm
(
self
,
perm
,
obj
=
None
):
return
self
.
is_active
and
self
.
is_superuser
def
get_absolute_url
(
self
):
"""
This is needed for black magic powered UpdateView's children
...
...
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