diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-11-01 17:05:53 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-11-01 17:05:53 -0400 |
| commit | 1f1378031e0f643011e22942ed6005d4000d015d (patch) | |
| tree | 252b4b8a059127335b60acf1dc611e427a2283d2 /src | |
| parent | 12dda08addf3bb7d61e07a592827b8bc8156a587 (diff) | |
sostler prod commit
Diffstat (limited to 'src')
| -rw-r--r-- | src/site.clj | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/site.clj b/src/site.clj index 58d7dac..3029f6a 100644 --- a/src/site.clj +++ b/src/site.clj @@ -785,15 +785,9 @@ WHERE u.user_id = ANY(?)" (resp-success msg-id)))))
-(defn is-bad-mgmt? [params request]
- (and (= (lower-case (params :room)) "mgmt")
- (not
- (= (lower-case (get (:headers request) "referer")) "http://dump.fm/mgmt/idontgetit"))))
-
(defn validated-msg [session params request]
(cond
(not (validate-room-access (params :room) session)) (resp-error "UNKNOWN_ROOM")
- (is-bad-mgmt? params request) (resp-error "INVALID")
:else (msg session params)))
;; Browser
@@ -1218,7 +1212,6 @@ WHERE u.user_id = ANY(?)" (not image) [200 "INVALID_REQUEST"]
mute [200 (format-mute mute)]
(not has-access) [200 "UNKNOWN_ROOM"]
- (is-bad-mgmt? params request) [200 "INVALID_REQUEST"]
:else (do-upload session image (lookup-room room-key)))))
(defn upload-photo [session params]
|
