Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
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-core
Commits
ffc3a0dd
Commit
ffc3a0dd
authored
Mar 31, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added ordering of homepage project by end_date DESC
parent
bc56e19f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
intranet-project-procs.tcl
tcl/intranet-project-procs.tcl
+7
-13
No files found.
tcl/intranet-project-procs.tcl
View file @
ffc3a0dd
...
...
@@ -106,7 +106,7 @@ ad_proc -public im_project_permissions {user_id project_id view_var read_var wri
set user_in_project_group_p
[
string
compare
"t"
[
db_string user_belongs_to_project
"select ad_group_member_p( :user_id, :project_id ) from dual"
]
]
# Treat the project mangers_fields
# A user ma
y
for some reason not be the group PM
# A user ma
n
for some reason not be the group PM
if
{
!$user_is_group_admin_p
}
{
set project_manager_id
[
db_string project_manager
"select project_lead_id from im_projects where project_id = :project_id"
-default 0
]
if
{
$user
_id ==
$project
_manager_id
}
{
...
...
@@ -154,10 +154,7 @@ ad_proc -public im_project_permissions {user_id project_id view_var read_var wri
# if {$user_is_company_member_p
}
{
set read 1
}
if
{
$user
_is_group_member_p
}
{
set read 1
}
if
{[
im_permission
$user
_id view_projects_all
]}
{
set read 1
}
if
{[
im_permission
$user
_id view_projects_all
]}
{
set read 1
}
if
{[
im_permission
$user
_id edit_projects_all
]}
{
set read 1
set write 1
...
...
@@ -617,6 +614,7 @@ order by
WHERE
p.company_id = c.company_id
$project
_history_restriction
order by end_date DESC
"
...
...
@@ -753,13 +751,9 @@ ad_proc im_project_clone {
if
{
$clone
_trans_tasks_p &&
[
db_table_exists
"im_trans_tasks"
]}
{
append errors
[
im_project_clone_trans_tasks
$parent
_project_id
$new
_project_id
]
}
# Fraber 060202: There are no timesheet_tasks (?
)
# if {$clone_timesheet_tasks_p && [db_table_exists "im_timesheet_tasks"
]
}
{
# append errors [im_project_clone_timesheet_tasks $parent_project_id $new_project_id
]
#
}
if
{
$clone
_timesheet_tasks_p &&
[
db_table_exists
"im_timesheet_tasks"
]}
{
append errors
[
im_project_clone_timesheet_tasks
$parent
_project_id
$new
_project_id
]
}
if
{
$clone
_target_languages_p &&
[
db_table_exists
"im_target_languages"
]}
{
append errors
[
im_project_clone_target_languages
$parent
_project_id
$new
_project_id
]
}
...
...
@@ -1682,4 +1676,4 @@ ad_proc im_project_nuke {project_id} {
return
}
set return_to_admin_link
"<a href=
\"
/intranet/projects/
\"
>
[
_ intranet-core.lt_return_to_user_admini
]
</a>"
}
}
\ No newline at end of file
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