Skip to content

Commit

Permalink
update permission and readme for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PaluMacil committed Aug 19, 2018
1 parent 7894ad9 commit a243e02
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
# DanWolf.NET

## Install

This section needs a lot of work (and the whole readme in general) but in general, you clone, set environmental variables, and run. It will.

## Licensing

The license for this project is MIT but some dependencies might have Apache or similar licenses. General reuse isn't necessarily intended and APIs might break, but it is permissible.

## Roadmap

### Section Priorities
- game
- file
- visit
- (then comment docs, tests, and README)
- download
- photo
- blog
- backup
- landlord

### Unsorted Thoughts
- Friends linked to friend role if appearing in Facebook friends
- Movie list: people in friends role should be able to vote for movies they want to see (to plan movie parties)
- Admins should be able to do some things on behalf of others (mark that someone wants to see a movie even if they don't have an account)
Expand Down
5 changes: 5 additions & 0 deletions api/typeaheadapi/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ package typeaheadapi
import (
"encoding/json"
"net/url"

"github.com/PaluMacil/dwn/dwn"
)

// api/typeahead/user?query=searchstring
func (rt *TypeaheadRoute) handleUser() {
switch rt.R.Method {
case "GET":
if rt.API().ServeCannot(dwn.PermissionViewUsers) {
return
}
qry, err := url.QueryUnescape(rt.R.URL.Query().Get("query"))
if len(qry) < 2 || err != nil {
rt.API().ServeBadRequest()
Expand Down

0 comments on commit a243e02

Please sign in to comment.