Skip to content

Commit

Permalink
User manager in meta (vesoft-inc#400)
Browse files Browse the repository at this point in the history
* User manager of Meta Server

* 1, Changed user data transport protocol from dataman to thrift. 2, Removed user property email and phone. 3, Added new user property lock status

* 1,Refactor user processors code structure. 2,Remove user properties first name and last name. 3, Add new user properties of resource limit. 4, Changed related thrift structure from 'name' to 'id', 5,Add some comments for role.

* To improve the drop space , on't delete useless role data

* Rebased and added (raftex_obj raftex_thrift_obj wal_obj time_obj) to authentication_test module

* Rebased and resolved some conflicts

* Address laura-ding's comment

* Resolved code alignment
  • Loading branch information
boshengchen authored and dangleptr committed Jun 19, 2019
1 parent 249c114 commit b0379cf
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/executor/PermissionManager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* Copyright (c) 2019 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/


#ifndef GRAPH_PERMISSIONMANAGER_H
#define GRAPH_PERMISSIONMANAGER_H

// Operation and permission define:
// Operation | GOD | ADMIN | USER | GUEST
// ---------------- | ------------- | ------------- | ------------- | -------------
// kGo | Y | Y | Y | Y
// kSet | Y | Y | Y | Y
// kPipe | Y | Y | Y | Y
// kUse | Y | Y | Y | Y
// kMatch | Y | Y | Y | Y
// kAssignment | Y | Y | Y | Y
// kCreateTag | Y | Y | |
// kAlterTag | Y | Y | |
// kCreateEdge | Y | Y | |
// kAlterEdge | Y | Y | |
// kDescribeTag | Y | Y | Y | Y
// kDescribeEdge | Y | Y | Y | Y
// kRemoveTag | Y | Y | |
// kRemoveEdge | Y | Y | |
// kInsertVertex | Y | Y | Y |
// kInsertEdge | Y | Y | Y |
// kShow | Y | Y | Y | Y
// kDeleteVertex | Y | Y | Y |
// kDeleteEdge | Y | Y | Y |
// kFind | Y | Y | Y | Y
// kAddHosts | Y | | |
// kRemoveHosts | Y | | |
// kCreateSpace | Y | | |
// kDropSpace | Y | Y | |
// kYield | Y | Y | Y | Y
// kCreateUser | Y | | |
// kDropUser | Y | | |
// kAlterUser | Y | Y | Y | Y
// kGrant | Y | Y | |
// kRevoke | Y | Y | |
// kChangePassword | Y | Y | Y | Y


#endif // GRAPH_PERMISSIONMANAGER_H

0 comments on commit b0379cf

Please sign in to comment.