Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
b0047f3e
Verified
Commit
b0047f3e
authored
2 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autoformatting
parent
b4742f31
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!42
Release 0.2.0
,
!40
F dot in username
Pipeline
#24959
failed
2 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
This commit is part of merge request
!40
. Comments created here will be created in the context of that merge request.
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/caosdb/acm/permission_rule.h
+4
-3
4 additions, 3 deletions
include/caosdb/acm/permission_rule.h
src/caosdb/acm/permission_rule_impl.h
+3
-3
3 additions, 3 deletions
src/caosdb/acm/permission_rule_impl.h
with
7 additions
and
6 deletions
include/caosdb/acm/permission_rule.h
+
4
−
3
Edit
View file @
b0047f3e
...
...
@@ -29,9 +29,9 @@
#ifndef CAOSDB_ACM_PERMISSION_RULE_H
#define CAOSDB_ACM_PERMISSION_RULE_H
#include
<stddef.h>
// for size_t
#include
<stddef.h>
// for size_t
#include
<unordered_set>
// for unordered_set
#include
<string>
// for string
#include
<string>
// for string
namespace
caosdb
::
acm
{
...
...
@@ -52,12 +52,13 @@ public:
[[
nodiscard
]]
auto
GetPermission
()
const
->
const
std
::
string
&
;
auto
operator
==
(
const
PermissionRule
&
other
)
const
->
bool
;
private:
PermissionRuleImpl
*
impl
;
};
struct
HashPermissionRule
{
auto
operator
()(
const
PermissionRule
&
rule
)
const
->
size_t
;
auto
operator
()(
const
PermissionRule
&
rule
)
const
->
size_t
;
};
using
PermissionRules
=
std
::
unordered_set
<
PermissionRule
,
HashPermissionRule
>
;
...
...
This diff is collapsed.
Click to expand it.
src/caosdb/acm/permission_rule_impl.h
+
3
−
3
Edit
View file @
b0047f3e
...
...
@@ -23,9 +23,9 @@
#define CAOSDB_ACM_PERMISSION_RULE_IMPL_H
#include
"caosdb/acm/role.h"
#include
"caosdb/acm/v1alpha1/main.pb.h"
// for ListRolesRequest
#include
"caosdb/protobuf_helper.h"
// for ProtoMessageWrapper
#include
<utility>
// for move
#include
"caosdb/acm/v1alpha1/main.pb.h"
// for ListRolesRequest
#include
"caosdb/protobuf_helper.h"
// for ProtoMessageWrapper
#include
<utility>
// for move
namespace
caosdb
::
acm
{
using
caosdb
::
utility
::
ScalarProtoMessageWrapper
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment