Exemplo n.º 1
0
    def check_session(self, logging_in=False):
        """
		Overwrite the BasePage's check_session function to make sure 
		that this user is an admin ...
		"""

        # Call the base session checker
        BasePage.check_session(self, logging_in)

        if not self.has_min_perms(perms.DEITY):
            raise cherrypy.InternalRedirect("/denied")
Exemplo n.º 2
0
	def check_session(self, logging_in=False):
		"""
		Overwrite the BasePage's check_session function to make sure 
		that this user is an admin ...
		"""

		# Call the base session checker
		BasePage.check_session(self, logging_in)
		
		if not self.has_min_perms(perms.DEITY):
			raise cherrypy.InternalRedirect("/denied")