summaryrefslogtreecommitdiffstats
path: root/cobbler/webui/CobblerWeb.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-04-02 16:32:26 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-04-02 16:32:26 -0400
commit511d6fc9976bd10344c920a4f03ba57da70527d9 (patch)
tree4af153653e94f663c4f49cbf5a55dcb322057b61 /cobbler/webui/CobblerWeb.py
parent8eff9bca139d66f86391362a28abdc07966817a3 (diff)
downloadthird_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 'cobbler/webui/CobblerWeb.py')
-rw-r--r--cobbler/webui/CobblerWeb.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cobbler/webui/CobblerWeb.py b/cobbler/webui/CobblerWeb.py
index 2012708..f6afe2f 100644
--- a/cobbler/webui/CobblerWeb.py
+++ b/cobbler/webui/CobblerWeb.py
@@ -677,10 +677,15 @@ class CobblerWeb(object):
} )
def ksfile_edit(self, name=None,**spam):
+
+
if not self.__xmlrpc_setup():
return self.xmlrpc_auth_failure()
+
+ can_edit = self.remote.check_access_no_fail(self.token,"modify_kickstart",name)
return self.__render( 'ksfile_edit.tmpl', {
'name': name,
+ 'editable' : can_edit,
'ksdata': self.remote.read_or_write_kickstart_template(name,True,"",self.token)
} )