Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dfe79e0e
authored
May 07, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: set acl level for template creation
parent
f42dd1df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/dashboard/views.py
+2
-2
No files found.
circle/dashboard/views.py
View file @
dfe79e0e
...
@@ -836,13 +836,13 @@ class TemplateChoose(TemplateView):
...
@@ -836,13 +836,13 @@ class TemplateChoose(TemplateView):
def
get_context_data
(
self
,
*
args
,
**
kwargs
):
def
get_context_data
(
self
,
*
args
,
**
kwargs
):
context
=
super
(
TemplateChoose
,
self
)
.
get_context_data
(
*
args
,
**
kwargs
)
context
=
super
(
TemplateChoose
,
self
)
.
get_context_data
(
*
args
,
**
kwargs
)
templates
=
InstanceTemplate
.
get_objects_with_level
(
"
operato
r"
,
templates
=
InstanceTemplate
.
get_objects_with_level
(
"
use
r"
,
self
.
request
.
user
)
self
.
request
.
user
)
context
.
update
({
context
.
update
({
'box_title'
:
_
(
'Choose template'
),
'box_title'
:
_
(
'Choose template'
),
'ajax_title'
:
False
,
'ajax_title'
:
False
,
'template'
:
"dashboard/_template-choose.html"
,
'template'
:
"dashboard/_template-choose.html"
,
'templates'
:
templates
.
all
(),
# TODO acl?
'templates'
:
templates
.
all
(),
})
})
return
context
return
context
...
...
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