Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
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
7abcec33
authored
Aug 31, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request: fix disk resize view permission problem
parent
8dc295a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
circle/request/views.py
+4
-1
No files found.
circle/request/views.py
View file @
7abcec33
...
...
@@ -305,7 +305,10 @@ class ResizeRequestView(VmRequestMixin, FormView):
success_message
=
_
(
"Request successfully sent."
)
def
get_disk
(
self
,
*
args
,
**
kwargs
):
return
get_object_or_404
(
Disk
,
pk
=
self
.
kwargs
[
'disk_pk'
])
disk
=
get_object_or_404
(
Disk
,
pk
=
self
.
kwargs
[
'disk_pk'
])
if
disk
not
in
self
.
get_vm
()
.
disks
.
all
():
raise
SuspiciousOperation
return
disk
def
get_form_kwargs
(
self
):
kwargs
=
super
(
ResizeRequestView
,
self
)
.
get_form_kwargs
()
...
...
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