I've just started working with a new company as a junior developer for Moodle, but I don't know anything about it. So far I find it very difficult to understand how everything works.
My latest task is to grant access to user Private Files for specific members/other admins. We use Private Files block, in a way so that our employees can add their updated CV's as a Private File.
Say, a HR team member or a Manager, needs to see these CV's, they need to log in as each user separately, until they find the one most qualified for specific task. It takes quite a while...
My Idea is simple - for example create a link inside the block itself, visible only to the users who has_capability() . This link will then lead this superuser to a new page/window/something , where ALL of the submitted Private CV's from ALL employees will be listed , so they can easily find whom they need.
I've read the File API, Repository docs, forum threads, looked at the database, and found the files I need. Problem is I can't patch it all together to make my idea work.
Please give me an advice on what I may be missing, also if you can give me an example code it would be much appreciated. Thanks!