Revision 0659115f src/rm/RequestManagerClusterDelete.cc

View differences:

src/rm/RequestManagerClusterDelete.cc
58 58
    {
59 59
        AuthRequest ar(rc);
60 60

  
61
        ar.add_auth(AuthRequest::HOST,-1,AuthRequest::MANAGE,0,false);
61
        ar.add_auth(AuthRequest::CLUSTER,clid,AuthRequest::DELETE,0,false);
62 62

  
63 63
        if (UserPool::authorize(ar) == -1)
64 64
        {
......
89 89
    goto error_common;
90 90

  
91 91
error_authorize:
92
    oss.str(authorization_error(method_name, "MANAGE", "HOST", rc, -1));
92
    oss.str(authorization_error(method_name, "DELETE", "CLUSTER", rc, clid));
93 93
    goto error_common;
94 94

  
95 95
error_cluster_delete:

Also available in: Unified diff