Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-bigbluebutton2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Andreas Grupp
python-bigbluebutton2
Commits
7c0a398f
Verified
Commit
7c0a398f
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Add some permissions for server groups and meetings
parent
4d46b8dd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bigbluebutton/django/models.py
+15
-0
15 additions, 0 deletions
bigbluebutton/django/models.py
with
15 additions
and
0 deletions
bigbluebutton/django/models.py
+
15
−
0
View file @
7c0a398f
...
...
@@ -86,6 +86,13 @@ class BigBlueButtonGroup(models.Model):
return
self
.
_api_group
class
Meta
:
permissions
=
[
(
"
add_servers
"
,
_
(
"
Can add servers to this group
"
)),
(
"
add_apitokens
"
,
_
(
"
Can add API tokens valid for this group
"
)),
(
"
add_meetings
"
,
_
(
"
Can add meetings on servers in this group
"
)),
]
class
Meeting
(
models
.
Model
):
"""
Configuation for a BigBlueButton meeting.
...
...
@@ -190,6 +197,14 @@ class Meeting(models.Model):
attendee
=
user
.
bbb_get_attendee
(
self
)
return
attendee
.
join
(
do_join
=
do_join
)
class
Meta
:
permissions
=
[
(
"
join_as_attendee
"
,
_
(
"
Can join this meeting with viewer role
"
)),
(
"
join_as_moderator
"
,
_
(
"
Can join this meeting with moderator role
"
)),
(
"
grant_attendee
"
,
_
(
"
Can grant attendee privileges to others
"
)),
(
"
grant_moderator
"
,
_
(
"
Can grant moderator privileges to others
"
)),
(
"
add_urls
"
,
_
(
"
Can add new URLs for this meeting
"
))),
]
class
APIToken
(
models
.
Model
):
"""
An API token when using the proxy capabilities of bigbluebutton2.
...
...
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