Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1bb04667
authored
Aug 29, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: remove unnecessary url entry
vm: fix required permissions
parent
8d1075f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
circle/dashboard/forms.py
+1
-1
circle/dashboard/urls.py
+1
-4
circle/vm/operations.py
+1
-1
No files found.
circle/dashboard/forms.py
View file @
1bb04667
...
...
@@ -1445,7 +1445,7 @@ class ToggleBootMenuForm(forms.ModelForm):
helper
=
FormHelper
()
helper
.
form_show_labels
=
True
helper
.
form_action
=
\
reverse_lazy
(
"dashboard.
views.vm-toggle-boot-
menu"
,
reverse_lazy
(
"dashboard.
instance.op.toggle_boot
menu"
,
kwargs
=
{
'pk'
:
self
.
instance
.
pk
})
return
helper
...
...
circle/dashboard/urls.py
View file @
1bb04667
...
...
@@ -42,7 +42,7 @@ from .views import (
ConnectCommandDelete
,
ConnectCommandDetail
,
ConnectCommandCreate
,
StoreList
,
store_download
,
store_upload
,
store_get_upload_url
,
StoreRemove
,
store_new_directory
,
store_refresh_toplist
,
VmTraitsUpdate
,
VmRawDataUpdate
,
VmToggleBootMenuUpdate
,
VmTraitsUpdate
,
VmRawDataUpdate
,
GroupPermissionsView
,
LeaseAclUpdateView
,
toggle_template_tutorial
,
...
...
@@ -113,9 +113,6 @@ urlpatterns = patterns(
name
=
'dashboard.views.vm-traits'
),
url
(
r'^vm/(?P<pk>\d+)/raw_data/$'
,
VmRawDataUpdate
.
as_view
(),
name
=
'dashboard.views.vm-raw-data'
),
url
(
r'^vm/(?P<pk>\d+)/toggle_boot_menu/$'
,
VmToggleBootMenuUpdate
.
as_view
(),
name
=
'dashboard.views.vm-toggle-boot-menu'
),
url
(
r'^vm/(?P<pk>\d+)/toggle_tutorial/$'
,
toggle_template_tutorial
,
name
=
'dashboard.views.vm-toggle-tutorial'
),
...
...
circle/vm/operations.py
View file @
1bb04667
...
...
@@ -1408,7 +1408,7 @@ class ToggleBootMenuOperation(InstanceOperation):
name
=
_
(
"toggle boot menu"
)
description
=
_
(
"Turn on/off boot menu."
)
acl_level
=
"owner"
required_perms
=
(
'vm.
change_resources
'
,
)
required_perms
=
(
'vm.
toggle_boot_menu
'
,
)
accept_states
=
(
'STOPPED'
,
'PENDING'
,
'RUNNING'
)
def
_operation
(
self
,
user
,
activity
,
boot_menu
):
...
...
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