Forums | Mahara Community

Developers /
Access to institution files


anonymous profile picture
Account deleted
Posts: 20

04 August 2010, 6:01

Dear all,

my client wants an overview of the the latest institution views and files on the Mahara login startpage.

I retrieve the views with the static function View::get_myviews_data()

and then filter them with   can_view_view($view['id']).

However, what's the access policy for institution files? I don't seem to be able to change the access rights, like I can do with group files, for instance.

I tried getting the files with

  ArtefactTypeFileBase::get_my_files_data(null, $USER->get('id'), null, $institution);

but this also seems to return files not downloadable by the user because when I go to the page

   artefact/file/download.php?file= <fileid>

it tells me that I cannot access the file.

Thanks in advance

   jzimmer

 

anonymous profile picture
Account deleted
Posts: 20

05 August 2010, 8:40

Hi,

I answer my question myself, at least partially. I realised that institution files are only meant to be put into institution views. Once they are in a view they can be accessed by normal users via the link in the view.

 

cheers

  Juergen

2 results