diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-02 16:32:26 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-02 16:32:26 -0400 |
commit | 511d6fc9976bd10344c920a4f03ba57da70527d9 (patch) | |
tree | 4af153653e94f663c4f49cbf5a55dcb322057b61 /webui_templates | |
parent | 8eff9bca139d66f86391362a28abdc07966817a3 (diff) | |
download | third_party-cobbler-511d6fc9976bd10344c920a4f03ba57da70527d9.tar.gz third_party-cobbler-511d6fc9976bd10344c920a4f03ba57da70527d9.tar.xz third_party-cobbler-511d6fc9976bd10344c920a4f03ba57da70527d9.zip |
Make changes in order to assure that users not in users.conf can still read
web content if cleared past the authentication layer. Also make changes
to the kickstart editor to indicate to users when they don't have permission
to edit kickstarts -- and to show possible causes.
Diffstat (limited to 'webui_templates')
-rw-r--r-- | webui_templates/enoaccess.tmpl | 2 | ||||
-rw-r--r-- | webui_templates/ksfile_edit.tmpl | 33 | ||||
-rw-r--r-- | webui_templates/ksfile_view.tmpl | 6 |
3 files changed, 32 insertions, 9 deletions
diff --git a/webui_templates/enoaccess.tmpl b/webui_templates/enoaccess.tmpl index 5af1ae3..b3a001e 100644 --- a/webui_templates/enoaccess.tmpl +++ b/webui_templates/enoaccess.tmpl @@ -5,6 +5,8 @@ WARNING: You do not have permission to make changes to this object. To recieve access, contact your Cobbler server administrator. </br> +#if $owners != [] The access control list for this object is: <B><U>$myowners</U></B>. +#end if </blockquote> diff --git a/webui_templates/ksfile_edit.tmpl b/webui_templates/ksfile_edit.tmpl index 5e0c5ae..87c9f41 100644 --- a/webui_templates/ksfile_edit.tmpl +++ b/webui_templates/ksfile_edit.tmpl @@ -1,7 +1,22 @@ #extends cobbler.webui.master -#attr $title = "Cobbler: Edit Kickstart File $ksfile" +##attr $title = "Cobbler: Edit Kickstart File $ksfile" #block body + +#if $editable != True +<blockquote> +NOTE: You do not have permission to make changes to this +kickstart template and can only read it. It is possible that +other Cobbler users has secured permissions on Cobbler +profiles/systems that depend on this template -- changing this +template would ultimately affect those profile/system records which +you do not have access to. Alternatively, you may not have access +to edit *any* kickstart templates. Contact your Cobbler server administrator +if you need to resolve this. +</blockquote> +</br> +#end if + <form method="post" action="$base_url?mode=ksfile_save"> <input type="hidden" name="name" value="$name"/> <fieldset id="cform"> @@ -10,8 +25,20 @@ <pre><textarea rows="40" cols="120" name="ksdata" id="ksdata">$ksdata</textarea></pre> <br/> - <input type="submit" name="submit" value="Save"/> - <input type="reset" name="reset" value="Reset"/> + #if $editable == True + <input type="submit" name="submit" value="Save"/> + <input type="reset" name="reset" value="Reset"/> + #end if + </fieldset> </form> + +#if $editable == True +<br/> +<blockquote> +NOTE: Run a cobbler sync to after making changes here in order +for kickstart files to be regenerated. +</blockquote> +#end if + #end block body diff --git a/webui_templates/ksfile_view.tmpl b/webui_templates/ksfile_view.tmpl deleted file mode 100644 index b6abf67..0000000 --- a/webui_templates/ksfile_view.tmpl +++ /dev/null @@ -1,6 +0,0 @@ -#extends cobbler.webui.master - -#block body -<pre class="config_data">$ksdata</pre> -#end block body - |