~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to rss/file.php

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?PHP //$Id: file.php,v 1.20 2006/11/01 21:03:09 skodak Exp $
 
1
<?PHP //$Id: file.php,v 1.20.6.1 2008/12/29 20:06:54 skodak Exp $
2
2
    //This file returns the required rss feeds
3
3
    //The URL format MUST include:
4
4
    //    course: the course id
89
89
        }
90
90
    }
91
91
 
92
 
    //Check for "security" if the course is hidden or the activity is hidden
93
 
    if (!$isblog and (!$course->visible || !$cm->visible) && (!has_capability('moodle/course:viewhiddenactivities', $context))) {
 
92
    //Do not allow acesss to hidden courses or activities because we can not trust user id - this will be improved in 2.0
 
93
    if (!$isblog and (!$course->visible || !$cm->visible)) {
94
94
        rss_not_found();
95
95
    }
96
96