Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Code80
vtigercrm
Commits
45f89cbd
Commit
45f89cbd
authored
5 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
Widgets security access has been generalized
parent
c5eeedf0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Vtiger/dashboards/CalendarActivities.php
+0
-10
0 additions, 10 deletions
modules/Vtiger/dashboards/CalendarActivities.php
modules/Vtiger/views/ShowWidget.php
+8
-2
8 additions, 2 deletions
modules/Vtiger/views/ShowWidget.php
with
8 additions
and
12 deletions
modules/Vtiger/dashboards/CalendarActivities.php
+
0
−
10
View file @
45f89cbd
...
...
@@ -9,16 +9,6 @@
*************************************************************************************/
class
Vtiger_CalendarActivities_Dashboard
extends
Vtiger_IndexAjax_View
{
function
checkPermission
(
Vtiger_Request
$request
)
{
$moduleName
=
'Calendar'
;
$modulePermission
=
Users_Privileges_Model
::
isPermitted
(
$moduleName
,
'DetailView'
);
if
(
!
$modulePermission
)
{
throw
new
AppException
(
vtranslate
(
'LBL_PERMISSION_DENIED'
));
}
return
true
;
}
public
function
process
(
Vtiger_Request
$request
)
{
$currentUser
=
Users_Record_Model
::
getCurrentUserModel
();
...
...
This diff is collapsed.
Click to expand it.
modules/Vtiger/views/ShowWidget.php
+
8
−
2
View file @
45f89cbd
...
...
@@ -53,9 +53,15 @@ class Vtiger_ShowWidget_View extends Vtiger_IndexAjax_View {
}
$request
->
set
(
'createdtime'
,
$dates
);
$classInstance
=
new
$className
();
if
(
$classInstance
->
checkPermission
(
$request
)){
if
(
$componentName
==
'CalendarActivities'
||
$componentName
==
'OverdueActivities'
)
{
$moduleName
=
'Calendar'
;
}
$currentUserPrivilegeModel
=
Users_Privileges_Model
::
getCurrentUserPrivilegesModel
();
if
(
$currentUserPrivilegeModel
->
hasModulePermission
(
getTabid
(
$moduleName
))
&&
!
Vtiger_Runtime
::
isRestricted
(
'modules'
,
$moduleName
)){
$classInstance
=
new
$className
();
$classInstance
->
process
(
$request
,
$widget
);
}
else
{
throw
new
AppException
(
vtranslate
(
'LBL_PERMISSION_DENIED'
));
}
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment