{"action":"created","issue":{"url":"https://api.github.com/repos/osTicket/osTicket/issues/3156","repository_url":"https://api.github.com/repos/osTicket/osTicket","labels_url":"https://api.github.com/repos/osTicket/osTicket/issues/3156/labels{/name}","comments_url":"https://api.github.com/repos/osTicket/osTicket/issues/3156/comments","events_url":"https://api.github.com/repos/osTicket/osTicket/issues/3156/events","html_url":"https://github.com/osTicket/osTicket/issues/3156","id":157409638,"number":3156,"title":"Enhancement: Enable Help Topics to be Restricted to Organizations and/or Primary Contacts","user":{"login":"cyclops26","id":2223581,"avatar_url":"https://avatars.githubusercontent.com/u/2223581?v=3","gravatar_id":"","url":"https://api.github.com/users/cyclops26","html_url":"https://github.com/cyclops26","followers_url":"https://api.github.com/users/cyclops26/followers","following_url":"https://api.github.com/users/cyclops26/following{/other_user}","gists_url":"https://api.github.com/users/cyclops26/gists{/gist_id}","starred_url":"https://api.github.com/users/cyclops26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyclops26/subscriptions","organizations_url":"https://api.github.com/users/cyclops26/orgs","repos_url":"https://api.github.com/users/cyclops26/repos","events_url":"https://api.github.com/users/cyclops26/events{/privacy}","received_events_url":"https://api.github.com/users/cyclops26/received_events","type":"User","site_admin":false},"labels":[{"id":51767076,"url":"https://api.github.com/repos/osTicket/osTicket/labels/question","name":"question","color":"d4c5f9","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-05-29T22:30:04Z","updated_at":"2016-12-07T21:30:25Z","closed_at":null,"body":"## Help Topic Visibility Restriction based on Organizations and Primary Contacts\n\n**Desired Features:**\n01. Limit Help Topic Visibility by Organization(s)\n02. Limit Help Topic Visibility to Primary Contacts\n\n**Backwards Support**\n01. Upon installation and the addition of any Help Topic with no specified \"Allowed Organization\", the default action is to not restrict the help topic's visibility.\n02. Upon installation and the addition of any Help Topic the default action is disable \"Primary Contact Only\" enforcement.\n\n**Notes:**\nI believe I have completed the necessary coding for this. I have attached screenshots. Any volunteers for some regression testing beyond what I have done thus far? I currently have this forked into a new git flow feature until testing is complete. Message me if you would like to help out.\n\n**Question:**\n@greezybacon or @protich what is the proper method within the osTicket deployment structure/git repo to include the SQL that will need to be deployed to enable the code changes that support this feature? I know that the SQL primarily lives in include/upgrader/streams/core/. I'm just unsure which git commit references numbers are being used in the file names. Thanks!\n## Screenshots\n\n**Organization Restricted Help Topic - No Primary Contact Restriction**\n<img width=\"549\" alt=\"screen shot 2016-05-29 at 6 10 52 pm\" src=\"https://cloud.githubusercontent.com/assets/2223581/15636357/934e0cc2-25c9-11e6-826d-64592ad34634.png\">\n\n**Primary Contact Restricted Help Topic - No Organization Restriction**\n<img width=\"518\" alt=\"screen shot 2016-05-29 at 6 11 06 pm\" src=\"https://cloud.githubusercontent.com/assets/2223581/15636355/9346fed2-25c9-11e6-8d11-fc6e9bb9b358.png\">\n\n**Organization and Primary Contact Restricted Help Topic**\n<img width=\"535\" alt=\"screen shot 2016-05-29 at 6 11 17 pm\" src=\"https://cloud.githubusercontent.com/assets/2223581/15636353/9345e3e4-25c9-11e6-95fe-02ba8e595476.png\">\n\n**Normal Help Topic with No Restrictions - If No Organization is Selected, it will Default to All Organizations**\n<img width=\"522\" alt=\"screen shot 2016-05-29 at 6 11 49 pm\" src=\"https://cloud.githubusercontent.com/assets/2223581/15636356/9349f63c-25c9-11e6-85af-b88bfc3a7515.png\">\n\n**Example User: John - Member of an Organization with Access to a Restricted Help Topic but he is not a Primary Contact**\n<img width=\"537\" alt=\"screen shot 2016-05-29 at 6 13 03 pm\" src=\"https://cloud.githubusercontent.com/assets/2223581/15636354/934637c2-25c9-11e6-9370-e718d613a686.png\">\n\n**Example User: Mary - Member of an Organization with Access to a Restricted Help Topic and she is also a Primary Contact**\n<img width=\"494\" alt=\"screen shot 2016-05-29 at 6 13 34 pm\" src=\"https://cloud.githubusercontent.com/assets/2223581/15636358/935624a2-25c9-11e6-8a08-7f15c38c1005.png\">\n\n**Example User: Michelle - Not a Member of an Organization with Access to a Restricted Help Topic and she is not a Primary Contact**\n<img width=\"474\" alt=\"screen shot 2016-05-29 at 6 16 40 pm\" src=\"https://cloud.githubusercontent.com/assets/2223581/15636359/9357c9ec-25c9-11e6-912d-eebdd5e08b47.png\">\n"},"comment":{"url":"https://api.github.com/repos/osTicket/osTicket/issues/comments/265579267","html_url":"https://github.com/osTicket/osTicket/issues/3156#issuecomment-265579267","issue_url":"https://api.github.com/repos/osTicket/osTicket/issues/3156","id":265579267,"user":{"login":"cyclops26","id":2223581,"avatar_url":"https://avatars.githubusercontent.com/u/2223581?v=3","gravatar_id":"","url":"https://api.github.com/users/cyclops26","html_url":"https://github.com/cyclops26","followers_url":"https://api.github.com/users/cyclops26/followers","following_url":"https://api.github.com/users/cyclops26/following{/other_user}","gists_url":"https://api.github.com/users/cyclops26/gists{/gist_id}","starred_url":"https://api.github.com/users/cyclops26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyclops26/subscriptions","organizations_url":"https://api.github.com/users/cyclops26/orgs","repos_url":"https://api.github.com/users/cyclops26/repos","events_url":"https://api.github.com/users/cyclops26/events{/privacy}","received_events_url":"https://api.github.com/users/cyclops26/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T21:30:25Z","updated_at":"2016-12-07T21:30:25Z","body":"@stieranka here is the feature branch on my side if you want to pull it down and test it: [https://github.com/cyclops26/osTicket/tree/feature/help-topic-organization-restrictions](url)"}}
{"actor":{"display_login":"cyclops26"}}