Revision 0659115f src/rm/RequestManagerClusterAdd.cc

View differences:

src/rm/RequestManagerClusterAdd.cc
61 61
    if ( rc != 0 ) // rc == 0 means oneadmin
62 62
    {
63 63
        AuthRequest ar(rc);
64

  
64
        
65 65
        ar.add_auth(AuthRequest::HOST,hid,AuthRequest::MANAGE,0,false);
66
        ar.add_auth(AuthRequest::CLUSTER,clid,AuthRequest::USE,0,false);
66 67

  
67 68
        if (UserPool::authorize(ar) == -1)
68 69
        {
......
107 108
    goto error_common;
108 109

  
109 110
error_authorize:
110
    oss.str(authorization_error(method_name, "MANAGE", "HOST", rc, hid));
111
    oss.str(authorization_error(method_name, "USE", "CLUSTER", rc, clid));
111 112
    goto error_common;
112 113

  
113 114
error_host_get:
......
116 117

  
117 118
error_cluster_add:
118 119
    host->unlock();
119
    oss.str(action_error(method_name, "MANAGE", "HOST", hid, rc));
120
    oss.str(action_error(method_name, "USE", "CLUSTER", clid, rc));
120 121
    goto error_common;
121 122

  
122 123
error_common:

Also available in: Unified diff