Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error: Fatal error: Declaration of vB_Attachment_Store_vBGlossary_GlossaryEntry::verify_permissions() must be compatible with that of vB_Attachment_Store::verify_permissions() in /packages/vbglossary/attach/glossaryentry.php on line 363
- class vB_Attachment_Store_vBGlossary_GlossaryEntry extends vB_Attachment_Store
- From vB_Attachment_Store class:
- /**
- * Verify permissions
- *
- * @return bool
- */
- abstract protected function verify_permissions($info = array());
- From vB_Attachment_Store_vBGlossary_GlossaryEntry:
- class vB_Attachment_Store_vBGlossary_GlossaryEntry extends vB_Attachment_Store
- {
- /**
- * Entryinfo
- *
- * @var array
- */
- protected $entryinfo = array();
- /**
- * Verifies permissions to attach content to entries
- *
- * @return boolean
- */
- public function verify_permissions()
- {
- global $show;
- require_once(DIR . '/includes/functions_vbglossar.php');
- $this->values['id'] = intval($this->values['id']) ? intval($this->values['id']) : intval($this->values['entryid']);
- if ($this->values['id'])
- {
- $this->entryinfo = fetch_entryinfo($this->values['id']);
- $this->contentid = $this->values['id'];
- $this->userinfo = fetch_userinfo($this->entryinfo['userid']);
- cache_permissions($this->userinfo);
- }
- else
- {
- if ($userid = intval($this->values['u']) AND $userinfo = fetch_userinfo($userid))
- {
- $this->userinfo = $userinfo;
- cache_permissions($this->userinfo);
- }
- else
- {
- $this->userinfo = $this->registry->userinfo;
- }
- }
- if (
- !($this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canentervbglossar'])
- OR
- !($this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canviewentry'])
- OR
- !($this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canattachtoentry'])
- )
- {
- // no permission to view glossar, glossar entries or attachments
- return false;
- }
- if (
- !($this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canadminvbglossar'])
- AND
- !$this->entryinfo['status']
- )
- {
- // no permission to moderate and entry is moderated
- return false;
- }
- if (!$this->entryinfo['groupshow'])
- {
- if (!array_intersect(fetch_membergroupids_array($this->registry->userinfo), explode(',', $this->attachmentinfo['groupshowlist'])))
- {
- // usergroup is not allowed to access category
- return -1;
- }
- }
- return true;
- }
Add Comment
Please, Sign In to add comment