Capability tweaks for rss_client block

This commit is contained in:
vyshane 2006-09-13 04:10:41 +00:00
parent 73b73d2101
commit 29ac3cc28d
2 changed files with 4 additions and 3 deletions

View File

@ -90,7 +90,8 @@
$context = get_context_instance(CONTEXT_BLOCK, $this->instance->id);
if (has_capability('block/rss_client:createsharedfeeds', $context)) {
if (has_capability('block/rss_client:createsharedfeeds', $context)
|| has_capability('block/rss_client:createprivatefeeds', $context)) {
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
//if ($page->user_allowed_editing()) { // for SUBMITTERS_ALL_ACCOUNT_HOLDERS we're going to run into trouble later if we show it and then they don't have write access to the page.

View File

@ -55,8 +55,8 @@ $block_rss_client_capabilities = array(
'guest' => CAP_PREVENT,
'student' => CAP_PREVENT,
'teacher' => CAP_PREVENT,
'editingteacher' => CAP_PREVENT,
'coursecreator' => CAP_PREVENT,
'editingteacher' => CAP_ALLOW,
'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),