Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
14cfe3f2
Commit
14cfe3f2
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-permissions' into 'master'
Fix GlobalPermissionModel See merge request
!172
parents
186a232a
7cb4e441
No related branches found
No related tags found
1 merge request
!172
Fix GlobalPermissionModel
Pipeline
#6733
passed
3 years ago
Stage: test
Stage: build
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/alsijil/migrations/0008_global_permissions.py
+1
-0
1 addition, 0 deletions
aleksis/apps/alsijil/migrations/0008_global_permissions.py
aleksis/apps/alsijil/models.py
+2
-2
2 additions, 2 deletions
aleksis/apps/alsijil/models.py
with
3 additions
and
2 deletions
aleksis/apps/alsijil/migrations/0008_global_permissions.py
+
1
−
0
View file @
14cfe3f2
...
...
@@ -17,6 +17,7 @@ class Migration(migrations.Migration):
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
extended_data
'
,
models
.
JSONField
(
default
=
dict
,
editable
=
False
)),
],
"
default_permissions
"
:
(),
options
=
{
'
permissions
'
:
((
'
view_week
'
,
'
Can view week overview
'
),
(
'
register_absence
'
,
'
Can register absence
'
),
(
'
list_personal_note_filters
'
,
'
Can list all personal note filters
'
)),
'
managed
'
:
False
,
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/models.py
+
2
−
2
View file @
14cfe3f2
...
...
@@ -31,7 +31,7 @@ from aleksis.apps.alsijil.managers import (
from
aleksis.apps.chronos.managers
import
GroupPropertiesMixin
from
aleksis.apps.chronos.mixins
import
WeekRelatedMixin
from
aleksis.apps.chronos.models
import
Event
,
ExtraLesson
,
LessonPeriod
from
aleksis.core.mixins
import
ExtensibleModel
from
aleksis.core.mixins
import
ExtensibleModel
,
GlobalPermissionModel
from
aleksis.core.models
import
SchoolTerm
from
aleksis.core.util.core_helpers
import
get_site_preferences
from
aleksis.core.util.model_helpers
import
ICONS
...
...
@@ -420,7 +420,7 @@ class GroupRoleAssignment(GroupPropertiesMixin, ExtensibleModel):
verbose_name_plural
=
_
(
"
Group role assignments
"
)
class
AlsijilGlobalPermissions
(
Extensible
Model
):
class
AlsijilGlobalPermissions
(
GlobalPermission
Model
):
class
Meta
:
managed
=
False
permissions
=
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment