From dd8f4910ed450c3f62e552b55f2387a88527ce46 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 24 Aug 2007 02:17:28 +0000 Subject: [PATCH] Hide role assign button from pinned blocks (always) MDL-9723 --- blocks/moodleblock.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 .= '' . -- 2.39.5