mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Change static paths in library templates and the method used to determine whether a user must log in
This commit is contained in:
@@ -266,7 +266,7 @@ class UniverseWebTransaction( base.DefaultWebTransaction ):
|
||||
url_for( controller='user', action='reset_password' ),
|
||||
url_for( controller='library', action='browse' )
|
||||
)
|
||||
if self.galaxy_session.user is None and environ['PATH_INFO'] not in allowed_paths:
|
||||
if self.galaxy_session.user is None and self.request.path not in allowed_paths:
|
||||
self.response.send_redirect( url_for( controller='root', action='index' ) )
|
||||
def __create_new_session( self, prev_galaxy_session=None, user_for_new_session=None ):
|
||||
"""
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="toolForm">
|
||||
<div class="toolFormTitle">Create a new folder</div>
|
||||
<div class="toolFormBody">
|
||||
<form name="folder" action="/admin/folder" method="post" >
|
||||
<form name="folder" action="${h.url_for( controller='admin', action='folder' )}" method="post" >
|
||||
<div class="form-row">
|
||||
<label>Name:</label>
|
||||
<div style="float: left; width: 250px; margin-right: 10px;">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="toolForm">
|
||||
<div class="toolFormTitle">Create a new library</div>
|
||||
<div class="toolFormBody">
|
||||
<form name="library" action="/admin/library" method="post" >
|
||||
<form name="library" action="${h.url_for( controller='admin', action='library' )}" method="post" >
|
||||
<div class="form-row">
|
||||
<label>Name:</label>
|
||||
<div style="float: left; width: 250px; margin-right: 10px;">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="toolForm">
|
||||
<div class="toolFormTitle">Edit folder name and description</div>
|
||||
<div class="toolFormBody">
|
||||
<form name="folder" action="/admin/folder" method="post" >
|
||||
<form name="folder" action="${h.url_for( controller='admin', action='folder' )}" method="post" >
|
||||
<div class="form-row">
|
||||
<label>Name:</label>
|
||||
<div style="float: left; width: 250px; margin-right: 10px;">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="toolForm">
|
||||
<div class="toolFormTitle">Edit library name and description</div>
|
||||
<div class="toolFormBody">
|
||||
<form name="library" action="/admin/library" method="post" >
|
||||
<form name="library" action="${h.url_for( controller='admin', action='library' )}" method="post" >
|
||||
<div class="form-row">
|
||||
<label>Name:</label>
|
||||
<div style="float: left; width: 250px; margin-right: 10px;">
|
||||
|
||||
Reference in New Issue
Block a user