]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add a missing cap type 6774/head
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 30 Nov 2015 18:29:49 +0000 (10:29 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 2 Dec 2015 18:39:37 +0000 (10:39 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_common.cc

index 9f59459c109bbc802b180914bc93299922780d26..3b9f6fc13cf1a41bd63adece96bfbee3319f0b79 100644 (file)
@@ -1158,7 +1158,8 @@ int RGWUserCaps::check_cap(const string& cap, uint32_t perm)
 
 bool RGWUserCaps::is_valid_cap_type(const string& tp)
 {
-  static const char *cap_type[] = { "users",
+  static const char *cap_type[] = { "user",
+                                    "users",
                                     "buckets",
                                     "metadata",
                                     "usage",