First commit
This commit is contained in:
47
framework/unify/userPermission.js
Normal file
47
framework/unify/userPermission.js
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
|
||||
Copyright (c) 2020, 2023, The Unified Company.
|
||||
|
||||
This code is part of Unify.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the ESA Software Community License - Strong Copyleft LICENSE,
|
||||
as published by the ESA.
|
||||
See the ESA Software Community License - Strong Copyleft LICENSE, for more details.
|
||||
|
||||
https://unifyjs.org
|
||||
|
||||
*/
|
||||
|
||||
|
||||
export default class userPermission{
|
||||
|
||||
constructor( user, type, policy ) {
|
||||
|
||||
if( user ) {
|
||||
|
||||
this.userObject = user;
|
||||
|
||||
}
|
||||
|
||||
if( type ) {
|
||||
|
||||
this.type = type;
|
||||
|
||||
}
|
||||
|
||||
if( policy ) {
|
||||
|
||||
this.policy = policy;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
userObject;
|
||||
|
||||
type;
|
||||
|
||||
policy;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user