Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-filestorage
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-filestorage
Commits
c0b34ac7
Commit
c0b34ac7
authored
Oct 15, 2004
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- changes for backup/restore
parent
ce65b1ae
Pipeline
#254
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
intranet-filestorage-procs.tcl
tcl/intranet-filestorage-procs.tcl
+9
-0
upload-2.tcl
www/upload-2.tcl
+3
-1
No files found.
tcl/intranet-filestorage-procs.tcl
View file @
c0b34ac7
...
...
@@ -897,6 +897,15 @@ ad_proc -public im_filestorage_base_component { user_id object_id object_name ba
set base_path_depth
[
llength
[
split
$base
_path
"/"
]]
ns_set delkey
$bind
_vars bread_crum_path
set user_is_employee_p
[
im_user_is_employee_p
$user
_id
]
set user_is_customer_p
[
im_user_is_customer_p
$user
_id
]
# Customer shouldn't see their filestorage
if
{[
string
equal
"customer"
$folder
_type
]
||
[
string
equal
"user"
$folder
_type
]}
{
if
{
!$user_is_employee_p
}
{
return
""
}
}
# ------------------------------------------------------------------
# Start initializing the tree algrorithm
...
...
www/upload-2.tcl
View file @
c0b34ac7
...
...
@@ -32,7 +32,9 @@ set context_bar [ad_context_bar [list "/intranet/projects/" "Projects"] [list "
# Gets object permissions using commands like: "im_project_permissions" ...
#
set
object_type
[
db_string acs_object_type
"select object_type from acs_objects where object_id=:object_id"
-default
""
]
set
perm_cmd
"
${object_type}
_permissions
\$
user_id
\$
object_id object_view object_read object_write object_admin"
eval
$perm
_cmd
...
...
@@ -40,7 +42,7 @@ eval $perm_cmd
#
set
exception_text
""
set
exception_count 0
if
{
!$object_
write
}
{
if
{
!$object_
read
}
{
append exception_text
"<li>You have insufficient privileges to upload this file.
\n
"
incr exception_count
}
...
...
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