-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Steps to reproduce
-
Create a user
subadminand make him subadmin of a groupnew-group -
perform
curl http://subadmin:123456@example.com/ocs/v1.php/cloud/groups -d groupid="newgroup" -
and see there is status code is
100in API-v1 and200in API-v2 -
and see there is new group
newgroup
Expected behaviour
Subadmin should not be able to create new group
Actual behaviour
Subadmin can create new group
Server configuration
Operating system: 17.10
Web server: Apache
Database: MySQL
PHP version: 7.1
ownCloud version: (see ownCloud admin page) 10.1.0
Where did you install ownCloud from: git
Log in terminal
When I ran
curl http://subadmin:123456@localhost:80/core/ocs/v1.php/cloud/groups -d groupid="newgroup"
I got
<?xml version="1.0"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message/>
</meta>
<data/>
</ocs>