Index: branches/unlabeled/unlabeled-1.106.2/globals.php =================================================================== diff -u -r4866 -r5359 --- branches/unlabeled/unlabeled-1.106.2/globals.php (.../globals.php) (revision 4866) +++ branches/unlabeled/unlabeled-1.106.2/globals.php (.../globals.php) (revision 5359) @@ -2077,5 +2077,12 @@ } return true; } + + function checkViewPermission($section_name, $system = 1) + { + $application =& kApplication::Instance(); + $application->InitParser(); + $application->ProcessParsedTag('m', 'RequireLogin', Array('permissions' => $section_name.'.view', 'system' => $system, 'index_file' => 'index.php')); + } ?>