# Advice about how to use Kirby best as quality management system

**URL:** <https://forum.getkirby.com/t/advice-about-how-to-use-kirby-best-as-quality-management-system/11313>\
**Category:** Questions\
**Tags:** v2\
**Created:** [September 26, 2018, 2:39pm UTC](https://forum.getkirby.com/t/advice-about-how-to-use-kirby-best-as-quality-management-system/11313 "2018-09-26T14:39:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [September 26, 2018, 2:51pm UTC](https://forum.getkirby.com/t/advice-about-how-to-use-kirby-best-as-quality-management-system/11313/2 "2018-09-26T14:51:17Z")

</div>

You can use roles to [restrict access to the page](https://getkirby.com/docs/panel/roles). I think what you want is essentially [described in this post.](https://forum.getkirby.com/t/permission-for-only-one-specific-page/7811), tweak it as required.

Setting the available documents is a little trickier. You could probably go with the [MultiSelect Field](https://github.com/distantnative/field-multiselect), but adjust the Query part in the blueprint to read files rather then page IDs, however I am not 100% sure it can read form another page. You may have to feed it a JSON list via a route.

Not tested this but something along these lines in your config should do it:

```auto
<?php

c::set('routes', array(

// File Links
array(
  'pattern' => 'filelist.json',
  'action' => function() {
    header('Content-type: application/json; charset=utf-8');
    $files = site()->index()->find('secretpage')->files();
    
    $json = array();

    foreach ($files as $file) {
        $json[$file->safeName()] = $file->filename();
    }

    echo json_encode($json);
  }
),

));

```

And in your blueprint, (assuming the multiselect can take JSON like the standard Select field)

```auto
fields:
  relevantfiles:
    label: File Downloads
    type: multiselect
    search: true
    options: url
    url: filelist.json

```

---

_[View the full topic](https://forum.getkirby.com/t/advice-about-how-to-use-kirby-best-as-quality-management-system/11313)._
