From: moodler Date: Fri, 24 Aug 2007 02:17:28 +0000 (+0000) Subject: Hide role assign button from pinned blocks (always) MDL-9723 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dd8f4910ed450c3f62e552b55f2387a88527ce46;p=moodle.git Hide role assign button from pinned blocks (always) MDL-9723 --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index fbac19c462..e8598cec1a 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -360,10 +360,11 @@ class block_base { $page = page_create_object($this->instance->pagetype, $this->instance->pageid); } $script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey)); - - // place holder for roles button - $movebuttons .= '' . - ''.$this->str->assignroles.''; + + if (empty($this->instance->pinned)) { + $movebuttons .= '' . + ''.$this->str->assignroles.''; + } if ($this->user_can_edit()) { $movebuttons .= '' .