1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00

implemented edition license checks

This commit is contained in:
Harvey Kandola 2017-02-23 16:39:23 -08:00
parent edccb39019
commit a4e3264e0c
19 changed files with 146 additions and 19 deletions

View file

@ -28,6 +28,11 @@ import (
// AddPin saves pinned item.
func AddPin(w http.ResponseWriter, r *http.Request) {
if IsInvalidLicense() {
util.WriteBadLicense(w)
return
}
method := "AddPin"
p := request.GetPersister(r)
params := mux.Vars(r)
@ -131,6 +136,11 @@ func GetUserPins(w http.ResponseWriter, r *http.Request) {
// DeleteUserPin removes saved user pin.
func DeleteUserPin(w http.ResponseWriter, r *http.Request) {
if IsInvalidLicense() {
util.WriteBadLicense(w)
return
}
method := "DeleteUserPin"
p := request.GetPersister(r)
params := mux.Vars(r)
@ -175,6 +185,11 @@ func DeleteUserPin(w http.ResponseWriter, r *http.Request) {
// UpdatePinSequence records order of pinned items.
func UpdatePinSequence(w http.ResponseWriter, r *http.Request) {
if IsInvalidLicense() {
util.WriteBadLicense(w)
return
}
method := "UpdatePinSequence"
p := request.GetPersister(r)
params := mux.Vars(r)