Skip to content

Commit

Permalink
MDL-55251 mod_chat: Add view permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourget committed Jul 15, 2016
1 parent 36a19ec commit 0f256bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions mod/chat/db/access.php
Expand Up @@ -103,4 +103,12 @@
),
),

'mod/chat:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'user' => CAP_ALLOW,
'guest' => CAP_ALLOW
)
)
);
1 change: 1 addition & 0 deletions mod/chat/lang/en/chat.php
Expand Up @@ -62,6 +62,7 @@
$string['chatreport'] = 'Chat sessions';
$string['chat:talk'] = 'Talk in a chat';
$string['chattime'] = 'Next chat time';
$string['chat:view'] = 'View chat activity';
$string['entermessage'] = "Enter your message";
$string['eventmessagesent'] = 'Message sent';
$string['eventsessionsviewed'] = 'Sessions viewed';
Expand Down
2 changes: 1 addition & 1 deletion mod/chat/version.php
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2016071500; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'mod_chat'; // Full name of the plugin (used for diagnostics).
$plugin->cron = 300;

0 comments on commit 0f256bc

Please sign in to comment.