Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ce26f872
authored
Sep 18, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix database session reference in User permission retrieval for consistency
1 parent
92ed44eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/base/models/users.py
opensipkd/base/models/users.py
View file @
ce26f87
...
...
@@ -172,7 +172,7 @@ class _User(UserMixin, BaseModel):
groups
=
UserGroup
.
get_by_user
(
self
)
perm_names
=
[]
for
g
in
groups
:
group_permissions
=
cls
.
db_s
ession
.
query
(
GroupPermission
)
.
filter_by
(
group_id
=
g
)
.
all
()
group_permissions
=
DBS
ession
.
query
(
GroupPermission
)
.
filter_by
(
group_id
=
g
)
.
all
()
for
gp
in
group_permissions
:
if
gp
.
perm_name
not
in
perm_names
:
perm_names
.
append
(
gp
.
perm_name
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment