Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-forum
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-forum
Commits
c7edae3c
Commit
c7edae3c
authored
Jul 20, 2004
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed bug assigning users to non-cli and staff roles
parent
d0584493
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
intranet-forum-procs.tcl
tcl/intranet-forum-procs.tcl
+6
-1
No files found.
tcl/intranet-forum-procs.tcl
View file @
c7edae3c
...
@@ -180,6 +180,7 @@ ad_proc -public im_forum_potential_asignees {user_id object_id} {
...
@@ -180,6 +180,7 @@ ad_proc -public im_forum_potential_asignees {user_id object_id} {
# ----------------------- Start building the SQL Query ----------
# ----------------------- Start building the SQL Query ----------
#
#
set object_admin_sql
"(
set object_admin_sql
"(
-- object_admin_sql
select distinct
select distinct
u.user_id,
u.user_id,
im_name_from_user_id(u.user_id) as user_name
im_name_from_user_id(u.user_id) as user_name
...
@@ -203,6 +204,7 @@ where
...
@@ -203,6 +204,7 @@ where
# or SysAdmin
)
, he can also assign the task to everybody.
# or SysAdmin
)
, he can also assign the task to everybody.
# ToDo: This may cause problems with large installations
# ToDo: This may cause problems with large installations
set public_sql
"(
set public_sql
"(
-- public_sql
select distinct
select distinct
u.user_id,
u.user_id,
im_name_from_user_id(u.user_id) as user_name
im_name_from_user_id(u.user_id) as user_name
...
@@ -212,6 +214,7 @@ from
...
@@ -212,6 +214,7 @@ from
# Add the objects customers to the list
# Add the objects customers to the list
set object_customer_sql
"(
set object_customer_sql
"(
-- object_customer_sql
select distinct
select distinct
u.user_id,
u.user_id,
im_name_from_user_id(u.user_id) as user_name
im_name_from_user_id(u.user_id) as user_name
...
@@ -229,6 +232,7 @@ where
...
@@ -229,6 +232,7 @@ where
# Add all object members to the list who are
# Add all object members to the list who are
# not customers
# not customers
set object_non_customer_sql
"(
set object_non_customer_sql
"(
-- object_non_customer_sql
select distinct
select distinct
u.user_id,
u.user_id,
im_name_from_user_id(u.user_id) as user_name
im_name_from_user_id(u.user_id) as user_name
...
@@ -240,10 +244,11 @@ where
...
@@ -240,10 +244,11 @@ where
r.object_id_one = :object_id
r.object_id_one = :object_id
and r.object_id_two = u.user_id
and r.object_id_two = u.user_id
and m.member_id = u.user_id
and m.member_id = u.user_id
and
m.group_id = :customer_group_id
and
not(m.group_id = :customer_group_id)
)"
)"
set object_staff_sql
"(
set object_staff_sql
"(
-- object_staff_sql
select distinct
select distinct
u.user_id,
u.user_id,
im_name_from_user_id(u.user_id) as user_name
im_name_from_user_id(u.user_id) as user_name
...
...
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