3 var groupUriChecker
= require('gitter-web-groups/lib/group-uri-checker');
5 function checkGroupUri(req
, res
, next
) {
6 return groupUriChecker(req
.user
, req
.query
.uri
)
8 if (info
.allowCreate
) {
12 // This is clearly a GitHub permsisions issue (#github-uri-split)
14 !info
.localUriExists
&&
15 (info
.type
=== 'GH_ORG' || info
.type
=== 'GH_REPO' || info
.type
=== 'GH_USER')
25 module
.exports
= checkGroupUri
;