Permalink
Browse files

admins will now see the add_edit/configure link only if the student o…

…r teacher would normally see it. Everybody option removed from the global config options - not working properly and too late in the cycle to keep it for now
  • Loading branch information...
1 parent 7c7d56b commit 65abd339ff2f3162fcab5f8ee3a3e40ad4d15856 dhawes committed May 17, 2005
Showing with 7 additions and 3 deletions.
  1. +1 −1 blocks/rss_client/block_rss_client.php
  2. +6 −2 blocks/rss_client/config_global.html
@@ -85,7 +85,7 @@ function get_content() {
if (isset($USER) && isset($USER->id) && $USER->id && !isguest()) {
$userisloggedin = true;
}
- if ( $userisloggedin && (isadmin() || $submitters == SUBMITTERS_ALL_ACCOUNT_HOLDERS || ($submitters == SUBMITTERS_ADMIN_AND_TEACHER && $isteacher)) ) {
+ if ( $userisloggedin && ($submitters == SUBMITTERS_ALL_ACCOUNT_HOLDERS || ($submitters == SUBMITTERS_ADMIN_AND_TEACHER && $isteacher)) ) {
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
if (isset($this->config)) {
@@ -40,8 +40,12 @@
$selected = '0';
$CFG->block_rss_client_submitters = 0;
}
- $options = array ( SUBMITTERS_ALL_ACCOUNT_HOLDERS => get_string('everybody'),
- SUBMITTERS_ADMIN_ONLY => get_string('administrators'),
+ // SUBMITTERS_ALL_ACCOUNT_HOLDERS => get_string('everybody')
+ // removed everybody option for 1.5 beta
+ // things are not quite working yet to allow this - revisit later
+ // also 'everybody' should be 'site members' or something clearer since
+ // it does not include guests
+ $options = array ( SUBMITTERS_ADMIN_ONLY => get_string('administrators'),
SUBMITTERS_ADMIN_AND_TEACHER => get_string('administratorsandteachers') );
choose_from_menu ($options, 'block_rss_client_submitters', $selected);

0 comments on commit 65abd33

Please sign in to comment.