<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Security.pl</id>
	<title>Security.pl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Security.pl"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Security.pl&amp;action=history"/>
	<updated>2026-05-05T23:46:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=Security.pl&amp;diff=14283&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added page about config file</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Security.pl&amp;diff=14283&amp;oldid=prev"/>
		<updated>2022-01-23T16:27:54Z</updated>

		<summary type="html">&lt;p&gt;Added page about config file&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{dirs}}&lt;br /&gt;
{{cfgd}}&lt;br /&gt;
&lt;br /&gt;
This file contains configuration functions for specifying whether a general request or a particular logged in user can access a document.  These functions can return one of three different values:&lt;br /&gt;
# '''ALLOW''' - Access to the document is allowed&lt;br /&gt;
# '''DENY''' - Access to the document is not allowed&lt;br /&gt;
# '''USER''' - Access to the document is allowed if the logged in user is permitted access.  Redirect to login if no user is logged in.&lt;br /&gt;
&lt;br /&gt;
== can_request_view_document ==&lt;br /&gt;
This function determines whether a general request can access a particular document.  The default function will do the following checks:&lt;br /&gt;
# If the document is public and the eprint is in the live archive and returns ''ALLOW'' if that is the case.&lt;br /&gt;
# If there is a &amp;quot;request a copy&amp;quot; code and if that code's request is for permitting access to the document and has not expired and returns ''ALLOW'' if that is the case.&lt;br /&gt;
# If there is a &amp;quot;request a copy&amp;quot; code and coversheets is enabled and the code's request is for permitted for the original document from which the coversheeted version now being accessed is generated and the request has not expired.  If this is the case ''ALLOW'' is returned.&lt;br /&gt;
If none of the criteria are meet then ''USER'' is returned.&lt;br /&gt;
&lt;br /&gt;
If the default version of this configuration file, there is commented out code for allowing authenticated access for a web crawler or permitting specific IP addresses for scenarios like on campus access.&lt;br /&gt;
&lt;br /&gt;
== can_user_view_document ==&lt;br /&gt;
This function determines if a specific user can access a particular document.  The default function will do the following:&lt;br /&gt;
# If the document is public and the eprint is in the live archive and returns ''ALLOW'' if that is the case.&lt;br /&gt;
# If the document is not public or the eprint is not in the live archive, returns ''DENY'' if the user is of type ''minuser''&lt;br /&gt;
# Returns ''ALLOW'' if the document security is ''validuser'' and the logged in user is not of type ''minuser'' and the eprint is in the live archive.&lt;br /&gt;
# Returns ''ALLOW'' if the document security is ''staffonly'' or the eprint is not in the live archive but the user is of type ''editor'' or ''admin'' or is the depositing user.&lt;br /&gt;
If none of these criteria are met ''DENY'' is returned.&lt;/div&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
</feed>