Revision 0659115f src/rm/RequestManagerClusterAllocate.cc

View differences:

src/rm/RequestManagerClusterAllocate.cc
59 59
    {
60 60
        AuthRequest ar(rc);
61 61

  
62
        ar.add_auth(AuthRequest::HOST,-1,AuthRequest::MANAGE,0,false);
62
        ar.add_auth(AuthRequest::CLUSTER,-1,AuthRequest::CREATE,0,false);
63 63

  
64 64
        if (UserPool::authorize(ar) == -1)
65 65
        {
......
91 91
    goto error_common;
92 92

  
93 93
error_authorize:
94
    oss.str(authorization_error(method_name, "MANAGE", "HOST", rc, -1));
94
    oss.str(authorization_error(method_name, "CREATE", "CLUSTER", rc, -1));
95 95
    goto error_common;
96 96

  
97 97
error_cluster_allocate:

Also available in: Unified diff