Commit 08cbaf59 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Create default role permissions for group artefacts copied from templates

parent 862c3e31
......@@ -634,6 +634,12 @@ abstract class ArtefactType {
);
}
}
else {
$roles = group_get_role_info($this->get('group'));
foreach ($roles as $r) {
$this->rolepermissions->{$r->name} = (object) array('view' => true, 'edit' => true, 'republish' => true);
}
}
}
public function copy_data() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment