DNRoot::CanViewArchives
Helper method to allow templates to know whether they should show the 'Archive List' include or not.
The actual permissions are set on a per-environment level, so we need to find out if this $member can upload to or download from *any* that (s)he has access to. TODO To be replaced with a method that just returns the list of archives this has access to.
Signature
public function CanViewArchives([Member
$member = NULL] )
Parameters
$member
— Member- The {@link Member} to check (or null to check the currently logged in Member)
Returns
- boolean
- true if $member has access to upload or download to at least one {@link DNEnvironment}.