Answers.Body: <p>I found a solution for this. The developer docs (<a href="https://docs.civicrm.org/dev/en/latest/framework/angular/loader/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/framework/angular/loader/</a>) mention how you could create your own angular page, which is a regular civicrm page but at a different url. </p>
  
  <p>Because it is a regular page I could set permissions for that just as I was used to do. See <a href="https://docs.civicrm.org/dev/en/latest/framework/routing/#access_arguments" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/framework/routing/#access_arguments</a> for how to do that.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-24T07:26:15.207Z
Answers.LastActivityDate: 2018-05-24T07:26:15.207Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Body: <p>I have developed a basic angular page and forms which stores data in the database. However the data stored are settings and should only be accesible when a user has a permission for Administer CiviCRM.</p>
  
  <p>How do I that? I don't have a Menu.xml where I would usually do that but I do have routing options in the angular controller.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-23T13:45:23.100Z
Comments.Text: Did you ever find a solution for this?
Comments.UserDisplayName: mickadoo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-24T07:26:40.653Z
Comments.Text: Thanks for posting the comment. I found indeed a solution for this.
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Tags: <permissions><angular>
Title: How to set permissions on an angular page
ThreadText: # How to set permissions on an angular page
  
  (Asked by: username_0 on 2015-12-02)
  
  I have developed a basic angular page and forms which stores data in the database. However the data stored are settings and should only be accesible when a user has a permission for Administer CiviCRM.
  
  How do I that? I don't have a Menu.xml where I would usually do that but I do have routing options in the angular controller.
  
  **Tags:** permissions, angular
  
  > **Comments:**
  > **username_1**: Did you ever find a solution for this?  
  > **username_0**: Thanks for posting the comment. I found indeed a solution for this.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-05-24. Score: 2 | Accepted answer
  
  I found a solution for this. The developer docs (<https://docs.civicrm.org/dev/en/latest/framework/angular/loader/>) mention how you could create your own angular page, which is a regular civicrm page but at a different url.
  
  Because it is a regular page I could set permissions for that just as I was used to do. See <https://docs.civicrm.org/dev/en/latest/framework/routing/#access_arguments> for how to do that.
  
  
  ---
  
  