root/devel-backup/units/magpie/permissions_check.php

Revision 45, 0.6 kB (checked in by sven, 3 years ago)

dos2unix to clean line endings, set svn property eol-style native, some whitespace homogenisation

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     // Last modified Ben Werdmuller May 19 2005
4
5     // Check permissions
6     // run("permissions:check", "object");
7     
8     // To add permission functionality to your own units, add code to
9     // $function['permissions:check'] in your main.php
10     
11     // You can use this file as a template; $page_owner should already
12     // be set - if the user is on a page specific to your unit, it should
13     // be set in run("your_unit_name:init")
14     
15         global $page_owner;
16         
17         if ($parameter == "rss") {
18             
19             if ($page_owner == $_SESSION['userid'] && logged_on) {
20                 $run_result = true;
21             }
22             
23         }
24         
25 ?>
26
Note: See TracBrowser for help on using the browser.