Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-ubl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
project-open
intranet-ubl
Commits
c85bae64
Commit
c85bae64
authored
Dec 21, 2007
by
eicom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added Admin menu
parent
b2dff888
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
intranet-ubl-create.sql
sql/postgresql/intranet-ubl-create.sql
+45
-0
No files found.
sql/postgresql/intranet-ubl-create.sql
View file @
c85bae64
...
...
@@ -20,3 +20,48 @@
alter
table
im_costs
add
ubl_exported_p
char
(
1
)
default
'f'
;
-----------------------------------------------------------
-- Create a menu entry
-----------------------------------------------------------
create
or
replace
function
inline_0
()
returns
integer
as
'
declare
v_admins integer;
v_main_menu integer;
v_menu integer;
BEGIN
select group_id into v_admins from groups where group_name =
''
P/O Admins
''
;
-- Determine the main menu. "Label" is used to identify menus.
select menu_id into v_main_menu
from im_menus where label=
''
admin
''
;
-- Create the menu.
v_menu := im_menu__new (
null, -- p_menu_id
''
acs_object
''
, -- object_type
now(), -- creation_date
null, -- creation_user
null, -- creation_ip
null, -- context_id
''
intranet-ubl
''
, -- package_name
''
admin_ubl
''
, -- label
''
UBL
''
, -- name
''
/intranet-ubl/index
''
, -- url
10, -- sort_order
v_main_menu, -- parent_menu_id
null -- p_visible_tcl
);
-- Grant read permissions to most of the system
PERFORM acs_permission__grant_permission(v_menu, v_admins,
''
read
''
);
return 0;
end;'
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
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