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
7fe98ed2
Commit
7fe98ed2
authored
5 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
Checkpermission on QuickcreateAjax is addressed
parent
88a9388b
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/views/Detail.php
+1
-0
1 addition, 0 deletions
modules/Vtiger/views/Detail.php
modules/Vtiger/views/QuickCreateAjax.php
+7
-5
7 additions, 5 deletions
modules/Vtiger/views/QuickCreateAjax.php
with
8 additions
and
5 deletions
modules/Vtiger/views/Detail.php
+
1
−
0
View file @
7fe98ed2
...
...
@@ -50,6 +50,7 @@ class Vtiger_Detail_View extends Vtiger_Index_View {
$request
->
set
(
'custom_module'
,
'Calendar'
);
break
;
default
:
$permissions
[]
=
array
(
'module_parameter'
=>
'module'
,
'action'
=>
'DetailView'
,
'record_parameter'
=>
'record'
);
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/Vtiger/views/QuickCreateAjax.php
+
7
−
5
View file @
7fe98ed2
...
...
@@ -10,12 +10,14 @@
class
Vtiger_QuickCreateAjax_View
extends
Vtiger_IndexAjax_View
{
public
function
requiresPermission
(
\Vtiger_Request
$request
)
{
$permissions
=
parent
::
requiresPermission
(
$request
);
$permissions
[]
=
array
(
'module_parameter'
=>
'module'
,
'action'
=>
'CreateView'
);
return
$permissions
;
}
public
function
checkPermission
(
Vtiger_Request
$request
)
{
$moduleName
=
$request
->
getModule
();
if
(
!
(
Users_Privileges_Model
::
isPermitted
(
$moduleName
,
'CreateView'
)))
{
throw
new
AppException
(
vtranslate
(
'LBL_PERMISSION_DENIED'
,
$moduleName
));
}
return
parent
::
checkPermission
(
$request
);
}
public
function
process
(
Vtiger_Request
$request
)
{
...
...
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