Removed isadmin()
This commit is contained in:
@@ -92,8 +92,12 @@ if ($currentaction == 'configblock') {
|
||||
print $checkbox . $feedtitle .'<br />'."\n";
|
||||
}
|
||||
} else {
|
||||
$context = get_context_instance(CONTEXT_BLOCK, $this->instance->id);
|
||||
print_string('nofeeds', 'block_rss_client');
|
||||
if ( isadmin() ) {
|
||||
|
||||
if (has_capability('block/rss_client:createprivatefeeds', $context)
|
||||
|| has_capability('block/rss_client:createsharedfeeds', $context)) {
|
||||
|
||||
$addrsspage = $page->url_get_full(array('instanceid' => $this->instance->id,
|
||||
'sesskey' => $USER->sesskey,
|
||||
'blockaction' => 'config',
|
||||
@@ -168,4 +172,5 @@ if ($currentaction == 'configblock') {
|
||||
print '</form>'; //not sure that this is needed
|
||||
rss_print_form($act, $url, $rssid, $preferredtitle, $shared, $id, $context);
|
||||
print '</td></tr></table>';
|
||||
} ?>
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user