Skip to content

Commit

Permalink
Merge pull request #109 from EmperorYP7/ctest-full2
Browse files Browse the repository at this point in the history
test: Added RBAC, Role Manager and removed MS Unit Tests
  • Loading branch information
hsluoyz authored Jun 29, 2021
2 parents 5fc6caa + 70efa6f commit 6f6a4e8
Show file tree
Hide file tree
Showing 37 changed files with 1,526 additions and 3,541 deletions.
35 changes: 0 additions & 35 deletions azure-pipelines.yml

This file was deleted.

44 changes: 0 additions & 44 deletions casbin.sln

This file was deleted.

2 changes: 1 addition & 1 deletion casbin/abac_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace casbin {
* Key's type is std::string and value's type can be one of std::string, int32_t, and float only
* @return Pointer to casbin::ABACData entity
*/
static const std::shared_ptr<ABACData> GetData(const ABACData::VariantMap& attribs) {
const std::shared_ptr<ABACData> GetData(const ABACData::VariantMap& attribs) {
return std::make_shared<ABACData>(attribs);
}

Expand Down
1 change: 1 addition & 0 deletions casbin/abac_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class ABACData {
// Casbin ABAC entity type
typedef ABACData ABACData;

const std::shared_ptr<ABACData> GetData(const ABACData::VariantMap& attribs);
}

#endif
2 changes: 2 additions & 0 deletions casbin/casbin.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@
#include "persist.h"
#include "util.h"
#include "exception.h"
#include "rbac.h"
#include "abac_data.h"
Loading

0 comments on commit 6f6a4e8

Please sign in to comment.