Skip to content
Snippets Groups Projects
Commit fe2f210e authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "OER Campus: Bei Entwurf: Zugriff verweigert"

Closes #2527

Merge request studip/studip!1913
parent 0119f041
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
class Oer_EndpointsController extends StudipController
{
protected $with_session = true; //we do need to have a session for this controller
public function index_action()
{
$this->controllerreflection = new ReflectionClass($this);
......@@ -297,7 +299,7 @@ class Oer_EndpointsController extends StudipController
public function download_action($material_id, $disposition = "inline")
{
$this->material = new OERMaterial($material_id);
if ($this->material['draft']) {
if ($this->material['draft'] && !$this->material->isMine()) {
throw new AccessDeniedException();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment