Allowing any user to add tag again
This commit is contained in:
parent
7f90ace546
commit
5cb29f56f8
|
@ -279,19 +279,16 @@
|
||||||
(jsonp/package/tag/add
|
(jsonp/package/tag/add
|
||||||
['pkg pkg]
|
['pkg pkg]
|
||||||
['tag tag])
|
['tag tag])
|
||||||
(ensure-package-author
|
(cond
|
||||||
pkg
|
[(valid-tag? tag)
|
||||||
(λ ()
|
(define i (package-info pkg))
|
||||||
(cond
|
(package-info-set!
|
||||||
[(valid-tag? tag)
|
pkg
|
||||||
(define i (package-info pkg))
|
(hash-set i 'tags (tags-normalize (cons tag (package-ref i 'tags)))))
|
||||||
(package-info-set!
|
(signal-static! (list pkg))
|
||||||
pkg
|
#t]
|
||||||
(hash-set i 'tags (tags-normalize (cons tag (package-ref i 'tags)))))
|
[else
|
||||||
(signal-static! (list pkg))
|
#f]))
|
||||||
#t]
|
|
||||||
[else
|
|
||||||
#f]))))
|
|
||||||
|
|
||||||
(define-jsonp/auth
|
(define-jsonp/auth
|
||||||
(jsonp/package/tag/del
|
(jsonp/package/tag/del
|
||||||
|
|
Loading…
Reference in New Issue
Block a user