Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
712588a4
Commit
712588a4
authored
May 30, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also list pools with VM.Allocate permissions
parent
5dd04127
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
Pool.pm
PVE/API2/Pool.pm
+3
-3
changelog.Debian
debian/changelog.Debian
+6
-0
defines.mk
defines.mk
+1
-1
No files found.
PVE/API2/Pool.pm
View file @
712588a4
...
...
@@ -23,7 +23,7 @@ __PACKAGE__->register_method ({
method
=>
'
GET
',
description
=>
"
Pool index.
",
permissions
=>
{
description
=>
"
List all pools where you have Pool.Allocate permissions on /pool/<pool>.
",
description
=>
"
List all pools where you have Pool.Allocate
or VM.Allocate
permissions on /pool/<pool>.
",
user
=>
'
all
',
},
parameters
=>
{
...
...
@@ -51,7 +51,7 @@ __PACKAGE__->register_method ({
my
$usercfg
=
$rpcenv
->
{
user_cfg
};
foreach
my
$pool
(
keys
%
{
$usercfg
->
{
pools
}})
{
next
if
!
$rpcenv
->
check
(
$authuser
,
"
/pool/
$pool
",
[
'
Pool
.Allocate
'
],
1
);
next
if
!
$rpcenv
->
check
_any
(
$authuser
,
"
/pool/
$pool
",
[
'
Pool.Allocate
',
'
VM
.Allocate
'
],
1
);
my
$entry
=
{
poolid
=>
$pool
};
my
$data
=
$usercfg
->
{
pools
}
->
{
$pool
};
...
...
@@ -108,7 +108,7 @@ __PACKAGE__->register_method ({
path
=>
'
{poolid}
',
method
=>
'
PUT
',
permissions
=>
{
description
=>
"
You a
sl
o need the right to modify permissions on any object you add/delete.
",
description
=>
"
You a
ls
o need the right to modify permissions on any object you add/delete.
",
check
=>
['
perm
',
'
/pool/{poolid}
',
['
Pool.Allocate
']],
},
description
=>
"
Update pool data.
",
...
...
debian/changelog.Debian
View file @
712588a4
pve-manager (2.1-8) unstable; urgency=low
* also list pools with VM.Allocate permissions
-- Proxmox Support Team <support@proxmox.com> Wed, 30 May 2012 11:20:45 +0200
pve-manager (2.1-7) unstable; urgency=low
* fix vzdump --exclude-path (allow to read value from vzdump.conf)
...
...
defines.mk
View file @
712588a4
...
...
@@ -2,7 +2,7 @@ RELEASE=2.1
VERSION=2.1
PACKAGE=pve-manager
PACKAGERELEASE=
7
PACKAGERELEASE=
8
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment