trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dewr...@apache.org
Subject [incubator-trafficcontrol] branch master updated: increases portal priv level to above R/O role to better reflect what the portal role can actually do. but it is still under operations and admin.
Date Wed, 31 Jan 2018 21:21:50 GMT
This is an automated email from the ASF dual-hosted git repository.

dewrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 45fd47f  increases portal priv level to above R/O role to better reflect what the
portal role can actually do. but it is still under operations and admin.
45fd47f is described below

commit 45fd47f1246f5d07707e1dba3e4ff9ab73345e6d
Author: Jeremy Mitchell <mitchell852@gmail.com>
AuthorDate: Wed Jan 31 13:27:40 2018 -0700

    increases portal priv level to above R/O role to better reflect what the portal role can
actually do. but it is still under operations and admin.
---
 .../20180131000000_update_portal_priv_level.sql    | 23 ++++++++++++++++++++++
 traffic_ops/app/db/seeds.sql                       |  2 +-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/traffic_ops/app/db/migrations/20180131000000_update_portal_priv_level.sql b/traffic_ops/app/db/migrations/20180131000000_update_portal_priv_level.sql
new file mode 100644
index 0000000..3e920db
--- /dev/null
+++ b/traffic_ops/app/db/migrations/20180131000000_update_portal_priv_level.sql
@@ -0,0 +1,23 @@
+/*
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	    http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+*/
+
+-- +goose Up
+-- SQL in section 'Up' is executed when this migration is applied
+
+UPDATE role SET priv_level = 15 WHERE name = 'portal';
+
+-- +goose Down
+-- SQL section 'Down' is executed when this migration is rolled back
+
+UPDATE role SET priv_level = 2 WHERE name = 'portal';
diff --git a/traffic_ops/app/db/seeds.sql b/traffic_ops/app/db/seeds.sql
index b14fa61..6a310f6 100644
--- a/traffic_ops/app/db/seeds.sql
+++ b/traffic_ops/app/db/seeds.sql
@@ -74,9 +74,9 @@ insert into role (name, description, priv_level) values ('admin', 'super-user',
 insert into role (name, description, priv_level) values ('operations', 'Operations user',
20) ON CONFLICT (name) DO NOTHING;
 insert into role (name, description, priv_level) values ('federation', 'Role for Secondary
CZF', 15) ON CONFLICT (name) DO NOTHING;
 insert into role (name, description, priv_level) values ('steering', 'Role for Steering Delivery
Services', 15) ON CONFLICT (name) DO NOTHING;
+insert into role (name, description, priv_level) values ('portal', 'Portal User', 15) ON
CONFLICT (name) DO NOTHING;
 insert into role (name, description, priv_level) values ('ort', 'ORT User', 11) ON CONFLICT
(name) DO NOTHING;
 insert into role (name, description, priv_level) values ('read-only', 'Read-Only user', 10)
ON CONFLICT (name) DO NOTHING;
-insert into role (name, description, priv_level) values ('portal', 'Portal User', 2) ON CONFLICT
(name) DO NOTHING;
 insert into role (name, description, priv_level) values ('disallowed', 'Block all access',
0) ON CONFLICT (name) DO NOTHING;
 
 -- tenants

-- 
To stop receiving notification emails like this one, please contact
dewrich@apache.org.

Mime
View raw message